]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Remove private _Py_Identifier API (#108593)
authorVictor Stinner <vstinner@python.org>
Tue, 29 Aug 2023 00:29:46 +0000 (02:29 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 00:29:46 +0000 (02:29 +0200)
commit4fb96a11db5eaca3646bfa697d191469e567d283
treecd639b62b56ae1077e8df660929c7a7b04e26a29
parent88f1c5b454c34efc167a94b5e2d67ec042834e5b
gh-106320: Remove private _Py_Identifier API (#108593)

Remove the private _Py_Identifier type and related private functions
from the public C API:

* _PyObject_GetAttrId()
* _PyObject_LookupSpecialId()
* _PyObject_SetAttrId()
* _PyType_LookupId()
* _Py_IDENTIFIER()
* _Py_static_string()
* _Py_static_string_init()

Move them to the internal C API: add a new pycore_identifier.h header
file. No longer export these functions.
Include/cpython/object.h
Include/internal/pycore_call.h
Include/internal/pycore_dict.h
Include/internal/pycore_identifier.h [new file with mode: 0644]
Include/internal/pycore_unicodeobject.h
Makefile.pre.in
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters