-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-116560: Add PyLong_GetSign() public function #116561
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
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
cb4af47
gh-116560: Add PyLong_Sign() public function
skirpichev c38819d
+ test
skirpichev 826f537
Add what's new entry
skirpichev 2c0b118
Change PyLong_Sign() API per review request
skirpichev 97776b4
Update Include/cpython/longobject.h
skirpichev 5f4eb29
Address review; test_long_sign(): check -> sign
skirpichev 7f7b56c
Merge branch 'main' into PyLong_Sign-116560
skirpichev a254dd3
Merge branch 'main' into PyLong_Sign-116560
skirpichev 38c6672
+1 // damn web editor
skirpichev 86e470e
Merge branch 'main' into PyLong_Sign-116560
skirpichev da0ac2b
Update Objects/longobject.c
skirpichev 3aec06c
Merge branch 'master' into PyLong_Sign-116560
skirpichev 41a33b4
PyLong_Sign -> PyLong_GetSign
skirpichev 12c6aa0
Apply suggestions from code review
skirpichev e02c095
address review: move news, etc; polishing
skirpichev 89a07fe
Update Doc/c-api/long.rst
vstinner 6b98d70
+1
skirpichev 21eeb54
Update Lib/test/test_capi/test_long.py
skirpichev 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
PyLong_Sign -> PyLong_GetSign
- Loading branch information
commit 41a33b4cdd46957a65a5b70bec61456169d3ba4d
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
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
2 changes: 1 addition & 1 deletion
2
Misc/NEWS.d/next/C API/2024-03-10-14-55-51.gh-issue-116560.x2mZaO.rst
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| Add :c:func:`PyLong_Sign` function. Patch by Sergey B Kirpichev. | ||
| Add :c:func:`PyLong_GetSign` function. Patch by Sergey B Kirpichev. |
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
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.