gh-106320: Remove private PyLong C API functions by vstinner · Pull Request #108429 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Merged
Conversation
Remove private PyLong C API functions: * _PyLong_AsByteArray() * _PyLong_DivmodNear() * _PyLong_Format() * _PyLong_Frexp() * _PyLong_FromByteArray() * _PyLong_FromBytes() * _PyLong_GCD() * _PyLong_Lshift() * _PyLong_Rshift() Move these functions to the internal C API. No longer export _PyLong_FromBytes() function.
vstinner
changed the title
106320: Remove private PyLong C API functions
gh-106320: Remove private PyLong C API functions
@erlend-aasland: sqlite3 uses another private function, _PyLong_AsByteArray().
This was referenced
What is the intended replacement for _PyLong_FromByteArray() ?
I created PR #111140: C API: Consider adding public PyLong_AsByteArray() and PyLong_FromByteArray() functions.
What is the intended replacement for _PyLong_GCD() ?
I created PR #111139: C API: Consider adding a public PyLong_GCD() function.
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