Commit Graph

12 Commits

Author SHA1 Message Date
Victor Stinner acf58098a1
PEP 757: PyLong_Export() can fail (#4025)
gmpy2: mpz_set_PyLong() now returns -1 on error.
2024-10-15 14:14:30 +02:00
Sergey B Kirpichev 68413fa107
PEP 757: edits, based on C-API WG feedback (#4026)
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2024-10-15 11:43:41 +02:00
Sergey B Kirpichev 7ccefe1e2f
PEP 757: reject more ideas (#4017)
* keep PyLong_GetNativeLayout() function (was: open question)
* reject mpz_import/export-like API
2024-10-04 14:51:19 +02:00
Sergey B Kirpichev ab9258da71
PEP 757: misc edits (#3984) 2024-09-20 15:36:32 +02:00
Victor Stinner 3b52323954
PEP 757: Cleanup (#3979)
* endian => endianness
* Move text to function documentations
* Discussions: add link to the PEP discussion
2024-09-19 23:28:22 +02:00
Sergey B Kirpichev 659cfe50a0
PEP 757: address review, sync with PR and prettify (#3975) 2024-09-19 11:02:45 +00:00
Victor Stinner 9475fa0aa4
PEP 757: Rename endian to endianness (#3973)
* Rephrase "Optimize small integers" section for import.
* Elaborate on PyLong_GetNativeLayout() validity.
* Mention PyLong_FreeExport() in the specification.
* Update benchmarks.
2024-09-18 13:59:58 +02:00
Sergey B Kirpichev b4e7700a56
PEP 757: use PyLong_Export (#3970) 2024-09-17 17:38:13 +02:00
Victor Stinner 5a1529c658
PEP 757: Make PyLong_DigitArray.obj private (#3966) 2024-09-16 13:20:45 +02:00
Victor Stinner 981c37c4bd
PEP 757: Fix typo (#3963) 2024-09-15 14:33:16 +02:00
Sergey B Kirpichev 7bd5c21ca1
PEP 757: minor edits (#3962) 2024-09-14 14:26:39 +02:00
Victor Stinner 5ac83c8cb7
PEP 757: C API to import-export Python integers (#3961) 2024-09-14 11:33:01 +02:00