]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128863: Deprecate private C API functions (#128864)
authorVictor Stinner <vstinner@python.org>
Wed, 22 Jan 2025 11:04:19 +0000 (12:04 +0100)
committerGitHub <noreply@github.com>
Wed, 22 Jan 2025 11:04:19 +0000 (11:04 +0000)
commit9012fa741d55419dc77c5c191794eb93e71ae9a4
treed8b2560baa9ab8b9ac3719afbeae87076a7cdbc7
parent470a0a68ebbbb4254f1a3e8e22cce0c3a0827055
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.
16 files changed:
Doc/deprecations/c-api-pending-removal-in-3.18.rst [new file with mode: 0644]
Doc/whatsnew/3.14.rst
Include/cpython/bytesobject.h
Include/cpython/dictobject.h
Include/cpython/fileutils.h
Include/cpython/pyhash.h
Include/cpython/pystate.h
Include/cpython/unicodeobject.h
Lib/test/audit-tests.py
Misc/NEWS.d/next/C_API/2025-01-15-11-42-07.gh-issue-128863.C9MkB_.rst [new file with mode: 0644]
Objects/descrobject.c
Objects/dictobject.c
Objects/methodobject.c
Objects/odictobject.c
Python/context.c
Python/fileutils.c