]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Remove private PyLong C API functions (#108429)
authorVictor Stinner <vstinner@python.org>
Thu, 24 Aug 2023 16:53:50 +0000 (18:53 +0200)
committerGitHub <noreply@github.com>
Thu, 24 Aug 2023 16:53:50 +0000 (18:53 +0200)
commitc55e73112c7b0574d05a522015d0c927de266525
tree8f1035a646c7b94afc0c1f2c250d009c99a37f36
parent7f316763402a7d5556deecc3acd06cb719e189b3
gh-106320: Remove private PyLong C API functions (#108429)

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.
Include/cpython/longobject.h
Include/internal/pycore_long.h
Modules/_io/_iomodule.c
Modules/_pickle.c
Modules/_randommodule.c
Modules/_sqlite/util.c
Modules/_struct.c
Modules/arraymodule.c
Modules/cjkcodecs/multibytecodec.c
Python/hamt.c