]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112026: Restore removed private C API (#112115)
authorVictor Stinner <vstinner@python.org>
Wed, 15 Nov 2023 16:38:31 +0000 (17:38 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2023 16:38:31 +0000 (16:38 +0000)
commit58469244beceb515c74cbdbd655256c0da569612
tree499a65d2d19a35d664db40a4e7f1d4536c32fe04
parentb338ffa4bc078fd363e8b0078eef4e0d6a071546
gh-112026: Restore removed private C API (#112115)

Restore removed private C API functions, macros and structures which
have no simple replacement for now:

* _PyDict_GetItem_KnownHash()
* _PyDict_NewPresized()
* _PyHASH_BITS
* _PyHASH_IMAG
* _PyHASH_INF
* _PyHASH_MODULUS
* _PyHASH_MULTIPLIER
* _PyLong_Copy()
* _PyLong_FromDigits()
* _PyLong_New()
* _PyLong_Sign()
* _PyObject_CallMethodId()
* _PyObject_CallMethodNoArgs()
* _PyObject_CallMethodOneArg()
* _PyObject_CallOneArg()
* _PyObject_EXTRA_INIT
* _PyObject_FastCallDict()
* _PyObject_GetAttrId()
* _PyObject_Vectorcall()
* _PyObject_VectorcallMethod()
* _PyStack_AsDict()
* _PyThread_CurrentFrames()
* _PyUnicodeWriter structure
* _PyUnicodeWriter_Dealloc()
* _PyUnicodeWriter_Finish()
* _PyUnicodeWriter_Init()
* _PyUnicodeWriter_Prepare()
* _PyUnicodeWriter_PrepareKind()
* _PyUnicodeWriter_WriteASCIIString()
* _PyUnicodeWriter_WriteChar()
* _PyUnicodeWriter_WriteLatin1String()
* _PyUnicodeWriter_WriteStr()
* _PyUnicodeWriter_WriteSubstring()
* _PyUnicode_AsString()
* _PyUnicode_FromId()
* _PyVectorcall_Function()
* _Py_HashDouble()
* _Py_HashPointer()
* _Py_IDENTIFIER()
* _Py_c_abs()
* _Py_c_diff()
* _Py_c_neg()
* _Py_c_pow()
* _Py_c_prod()
* _Py_c_quot()
* _Py_c_sum()
* _Py_static_string()
* _Py_static_string_init()
20 files changed:
Include/cpython/abstract.h
Include/cpython/complexobject.h
Include/cpython/dictobject.h
Include/cpython/longintrepr.h
Include/cpython/longobject.h
Include/cpython/object.h
Include/cpython/pyhash.h
Include/cpython/pystate.h
Include/cpython/unicodeobject.h
Include/internal/pycore_call.h
Include/internal/pycore_complexobject.h
Include/internal/pycore_dict.h
Include/internal/pycore_identifier.h
Include/internal/pycore_long.h
Include/internal/pycore_pyhash.h
Include/internal/pycore_pystate.h
Include/internal/pycore_unicodeobject.h
Include/object.h
Misc/NEWS.d/next/C API/2023-11-15-16-07-57.gh-issue-112026.bnr8dd.rst [new file with mode: 0644]
Objects/dictobject.c