-
Notifications
You must be signed in to change notification settings - Fork 1
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
Allow deprecating stable functions/features #9
Comments
@vstinner, it seems you're interested in deprecating in the Limited API / Stable ABI. |
In a perfect world, I would like to remove almost all functions of the Python C API :-) Only 2 or 3 functions should be enough for everyone :-D In the meanwhile, I would like to remove PyEval_InitThreads(). Deprecated in 3.9, PyEval_InitThreads() now does nothing. See https://bugs.python.org/issue44117 and python/cpython#26070 In Python main branch:
|
That is an example of a function I'd not want to remove in |
A candidate for removal is the old buffer protocol (see https://bugs.python.org/issue41103), but only after the new API is available in Limited ABI (https://bugs.python.org/issue45459): |
Static types are another candidate: https://bugs.python.org/issue40601 |
And more: |
Old functions would need to be available forever, but they could be deprecated at build time.
Maybe they could even be removed for newer
Py_LIMITED_API
(but still be available at run time).The text was updated successfully, but these errors were encountered: