gh-128863: Deprecate private C API functions (#128864)

Deprecate private C API functions:

* _PyBytes_Join()
* _PyDict_GetItemStringWithError()
* _PyDict_Pop()
* _PyThreadState_UncheckedGet()
* _PyUnicode_AsString()
* _Py_HashPointer()
* _Py_fopen_obj()

Replace _Py_HashPointer() with Py_HashPointer().

Remove references to deprecated functions.
This commit is contained in:
Victor Stinner 2025-01-22 12:04:19 +01:00 committed by GitHub
parent 470a0a68eb
commit 9012fa741d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 103 additions and 30 deletions

View file

@ -260,7 +260,7 @@ mp_length __len__ - dict_length
mp_subscript __getitem__ - dict_subscript
mp_ass_subscript __setitem__ - dict_ass_sub
__delitem__
tp_hash __hash__ _Py_HashPointer ..._HashNotImpl
tp_hash __hash__ Py_HashPointer ..._HashNotImpl
tp_str __str__ object_str -
tp_getattro __getattribute__ ..._GenericGetAttr (repeated)
__getattr__