You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation is about 186 lines. IMO it's too big and too complex for pythoncapi-compat sadly :-( The https://github.com/vstinner/deadparrot would be a better place to backport such feature.
Then maybe using PyLong_AsLongAndOverflow() is better for PyLong_Export. I did pr to switch: vstinner/cpython#6. This clear practical need for backport.
You shouldn't worry about pythoncapi-compat: there is a great freedom on how we can do things in pythoncapi-compat. It shouldn't impact PEP 757 design.
Activity
vstinner commentedon Sep 18, 2024
The implementation is about 186 lines. IMO it's too big and too complex for pythoncapi-compat sadly :-( The https://github.com/vstinner/deadparrot would be a better place to backport such feature.
skirpichev commentedon Sep 18, 2024
Then maybe using PyLong_AsLongAndOverflow() is better for PyLong_Export. I did pr to switch: vstinner/cpython#6. This clear practical need for backport.
vstinner commentedon Sep 18, 2024
You shouldn't worry about pythoncapi-compat: there is a great freedom on how we can do things in pythoncapi-compat. It shouldn't impact PEP 757 design.
skirpichev commentedon Sep 18, 2024
Sure, we could use PyLong_AsLongAndOverflow() just for backports. But it looks faster than current solution, at least for my benchmarks.