Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C API] Deprecate private functions which have a public replacement #128863

Open
vstinner opened this issue Jan 15, 2025 · 1 comment
Open

[C API] Deprecate private functions which have a public replacement #128863

vstinner opened this issue Jan 15, 2025 · 1 comment

Comments

@vstinner
Copy link
Member

vstinner commented Jan 15, 2025

Hi,

Python 3.13 and 3.14 added public functions to replace private functions. For example, a public function PyBytes_Join() was added to replace the private function _PyBytes_Join().

I propose to deprecate the private functions which have a public replacement, and remove them in Python 3.16.

Victor

Linked PRs

vstinner added a commit to vstinner/cpython that referenced this issue Jan 15, 2025
* _PyBytes_Join()
* _PyThreadState_UncheckedGet()
* _Py_HashPointer()
* _Py_fopen_obj()

Replace _Py_HashPointer() with Py_HashPointer().
vstinner added a commit to vstinner/cpython that referenced this issue Jan 15, 2025
* _PyBytes_Join()
* _PyThreadState_UncheckedGet()
* _PyUnicode_AsString()
* _Py_HashPointer()
* _Py_fopen_obj()

Replace _Py_HashPointer() with Py_HashPointer().

Remove references to deprecated functions.
@vstinner
Copy link
Member Author

vstinner added a commit to vstinner/cpython that referenced this issue Jan 15, 2025
* _PyBytes_Join()
* _PyDict_GetItemStringWithError()
* _PyThreadState_UncheckedGet()
* _PyUnicode_AsString()
* _Py_HashPointer()
* _Py_fopen_obj()

Replace _Py_HashPointer() with Py_HashPointer().

Remove references to deprecated functions.
vstinner added a commit to vstinner/cpython that referenced this issue Jan 15, 2025
* _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.
vstinner added a commit to vstinner/cpython that referenced this issue Jan 15, 2025
* _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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant