]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Re-add some PyLong/PyDict C-API functions (GH-#111162)
authorscoder <stefan_ml@behnel.de>
Wed, 25 Oct 2023 09:33:48 +0000 (11:33 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Oct 2023 09:33:48 +0000 (11:33 +0200)
commita8a89fcd1ff03bb2f10126e0973faa74871874c3
tree6a7a276a72c43846f12edeb38a27c86ac387757d
parentb2ba2985275d1200e5c44c3f224d754141fc5292
gh-106320: Re-add some PyLong/PyDict C-API functions (GH-#111162)

* gh-106320: Re-add _PyLong_FromByteArray(), _PyLong_AsByteArray() and _PyLong_GCD() to the public header files since they are used by third-party packages and there is no efficient replacement.

See https://github.com/python/cpython/issues/111140
See https://github.com/python/cpython/issues/111139

* gh-111262: Re-add _PyDict_Pop() to have a C-API until a new public one is designed.
Include/cpython/dictobject.h
Include/cpython/longobject.h
Include/internal/pycore_dict.h
Include/internal/pycore_long.h
Modules/_randommodule.c
Modules/_threadmodule.c
Modules/arraymodule.c
Modules/cjkcodecs/multibytecodec.c
Modules/socketmodule.c
Python/import.c