-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-143050: correct PyLong_FromString() to use _PyLong_Negate() #145901
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
vstinner
merged 13 commits into
python:main
from
skirpichev:fix-PyLong_FromString/143050
Mar 31, 2026
+34
−18
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fbcec5a
gh-143050: correct PyLong_FromString() to use _PyLong_Negate()
skirpichev b8333ba
cleanup, use _testcapi.test_immortal_small_ints()
skirpichev 20e79c6
+ add also test with nonzero small int
skirpichev 413e56d
_long_is_small_int() -> _PyLong_IsImmortal() helper
skirpichev b892216
Merge branch 'master' into fix-PyLong_FromString/143050
skirpichev 78c5b4b
address review: rename _PyLong_IsImmortal -> _PyLong_HasImmortalTag
skirpichev 69d35bd
add assert
skirpichev 2f927e0
address review: simplify assert
skirpichev 53523de
Merge branch 'master' into fix-PyLong_FromString/143050
skirpichev 1f363f4
address review: some comments
skirpichev 41961ed
Merge branch 'main' into fix-PyLong_FromString/143050
skirpichev 0b29e28
address review: add assert on _PY_IS_SMALL_INT
skirpichev 45b3b04
Rename to _PyLong_IsSmallInt()
vstinner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Rename to _PyLong_IsSmallInt()
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
- Loading branch information
commit 45b3b040da09b93a42a32e71f08de5670f8d79d6
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.