Skip to content

gh-126061: add PyLong_IsPositive/Negative/Zero/GetSign functions to refcounts.dat #126788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

rruuaanng
Copy link
Contributor

@rruuaanng rruuaanng commented Nov 13, 2024


📚 Documentation preview 📚: https://cpython-previews--126788.org.readthedocs.build/

This PR completes the proposal in #126065, but it only adds GetSign/IsZero/IsPositive/IsNegative

Although it is a draft PR, it is open for review. For other recently added C-API, I need to spend a little time looking for them, if there are no such requirements, it can be merged directly.

@rruuaanng rruuaanng marked this pull request as draft November 13, 2024 15:19
@skirpichev
Copy link
Contributor

This PR completes the proposal in #126065, but it only adds GetSign/IsZero/IsPositive/IsNegative

I think it's enough.

@rruuaanng
Copy link
Contributor Author

Then I will open this PR to hear more opinions :)

cc @vstinner

@rruuaanng rruuaanng marked this pull request as ready for review November 14, 2024 04:51
@skirpichev skirpichev changed the title Add recently added functions to refcounts.dat gh-126061: add PyLong_IsPositive/Negative/Zero functions to refcounts.dat Nov 14, 2024
@skirpichev skirpichev changed the title gh-126061: add PyLong_IsPositive/Negative/Zero functions to refcounts.dat gh-126061: add PyLong_IsPositive/Negative/Zero/GetSign functions to refcounts.dat Nov 14, 2024
@vstinner vstinner merged commit 1e3497e into python:main Nov 14, 2024
42 checks passed
@vstinner
Copy link
Member

Merged, thanks @rruuaanng.

@rruuaanng
Copy link
Contributor Author

A little help. For CPython :)

@rruuaanng rruuaanng deleted the refdata branch November 14, 2024 14:23
picnixz pushed a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants