diff options
author | scoder <stefan_ml@behnel.de> | 2023-10-25 09:33:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 09:33:48 (GMT) |
commit | a8a89fcd1ff03bb2f10126e0973faa74871874c3 (patch) | |
tree | 6a7a276a72c43846f12edeb38a27c86ac387757d /Include/cpython/dictobject.h | |
parent | b2ba2985275d1200e5c44c3f224d754141fc5292 (diff) | |
download | cpython-a8a89fcd1ff03bb2f10126e0973faa74871874c3.zip cpython-a8a89fcd1ff03bb2f10126e0973faa74871874c3.tar.gz cpython-a8a89fcd1ff03bb2f10126e0973faa74871874c3.tar.bz2 |
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.
Diffstat (limited to 'Include/cpython/dictobject.h')
-rw-r--r-- | Include/cpython/dictobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h index b05ca3e..64a4042 100644 --- a/Include/cpython/dictobject.h +++ b/Include/cpython/dictobject.h @@ -46,6 +46,7 @@ static inline Py_ssize_t PyDict_GET_SIZE(PyObject *op) { PyAPI_FUNC(int) PyDict_ContainsString(PyObject *mp, const char *key); +PyAPI_FUNC(PyObject *) _PyDict_Pop(PyObject *dict, PyObject *key, PyObject *default_value); /* Dictionary watchers */ |