-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-102471, PEP 757: Add PyLong import and export API #121339< 10000 /span>
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
54 commits
Select commit
Hold shift + click to select a range
f4fdbf2
gh-102471: Add PyLong import and export API
vstinner c2e568e
Add layout
vstinner f0d9525
Merge branch 'main' into long_export
vstinner b19764f
Rename word_endian to digits_order
vstinner 6f7fd11
Replace Py_digit* type with void*
vstinner 080e079
Add PyLongWriter_Discard() function
vstinner 1a7902f
Fixes
vstinner b70a6dd
Use unsigned type for ndigits
vstinner 07552a7
Remove again layout
vstinner 0d0f942
Revert "Use unsigned type for ndigits"
vstinner 762c33a
doc: adjust ndigits documentation
vstinner 20be7a3
Update doc
vstinner d92bf1e
Make PyLong_DigitArray.obj private
vstinner b3b02a2
Remove reserved documentation
vstinner caca2d7
PyLong_FreeDigitArray() only clears _reserved
vstinner 4221a49
Make PyLong_LAYOUT static
vstinner 37b1d49
Add PyLong_AsDigitArray.value
vstinner d70a121
Inline PyLong_AsInt64() to avoid the exception
vstinner 4aa25f6
Remove Py_digit type; update the doc
vstinner 90973d4
Merge branch 'main' into long_export
vstinner 5d3e224
Add long_asnativebytes() function
vstinner c7d7cb2
Remove reference to removed Py_digit type
vstinner a3d601a
Address Antoine's review
vstinner c049268
Merge branch 'main' into long_export
vstinner 06b196b
Merge branch 'main' into long_export
skirpichev 3e8d296
Apply suggestions from code review
skirpichev 86c68c2
Merge branch 'main' into long_export
skirpichev a8fd669
Revert "Add long_asnativebytes() function"
vstinner a04f9d0
Use PyLong_AsLongAndOverflow()
vstinner b2be94a
Try PyLong_AsLongLongAndOverflow() first
vstinner ca98ad1
Merge branch 'main' into long_export
vstinner 167d75e
Update Doc/c-api/long.rst
vstinner 5e53a5b
Sync implementation with PEP (#8)
skirpichev c24789f
Merge branch 'main' into long_export
skirpichev 0422f9d
fix NL in Doc/c-api/long.rst (sorry, damn web editor)
skirpichev a529a48
rename news
skirpichev 3db44f3
Address Erlend's review
vstinner 1d2863e
Address Sergey's review
vstinner d663511
Merge branch 'main' into long_export
vstinner 816798d
Merge branch 'main' into long_export
vstinner 033bd65
Update documentation from PEP 757
vstinner 36b87d4
Update Modules/_testcapi/long.c
vstinner 94d852e
Sync implementation with PEP (#9)
skirpichev a72ff83
Merge branch 'main' into long_export
vstinner 53d584b
Cleanup
vstinner 577598a
Update Doc/c-api/long.rst
vstinner b08cd55
Address Steve's review
vstinner eaebef3
Address Bénédikt's review
vstinner 03248c7
Apply suggestions from code review
vstinner 0a26f97
Address Steve's review
vstinner 88a62fe
Add PyLong_Export to Doc/data/refcounts.dat
vstinner 45517ab
Address Serhiy's review
vstinner 92007d1
Address Petr's review
vstinner 6d3cb80
Add PyLongWriter to Doc/data/refcounts.dat
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
Address Serhiy's review
- Loading branch information
commit 45517ab99a339763cc4ea8a6f997c68d023aeed3
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.