PEP 743 – Add Py_OMIT_LEGACY_API to the Python C API: https://peps.python.org/pep-0743/
Abstract
Add Py_OMIT_LEGACY_API C macro that hides deprecated and soft-deprecated symbols, allowing users to opt out of using API with known issues that other API solves.
Also, add namespaced alternatives for API without the Py_ prefix, and soft-deprecate the original names.
Vote
@encukou and me abstain from voting since we wrote the PEP :-)
If the vote is positive, the PEP will be submitted to the Steering Council (see the SC discussion).
Update: the macro Py_COMPAT_API_VERSION name was changed to Py_OMIT_LEGACY_API.
PEP 743 – Add
Py_OMIT_LEGACY_APIto the Python C API: https://peps.python.org/pep-0743/Abstract
Add
Py_OMIT_LEGACY_APIC macro that hides deprecated and soft-deprecated symbols, allowing users to opt out of using API with known issues that other API solves.Also, add namespaced alternatives for API without the
Py_prefix, and soft-deprecate the original names.Vote
@encukou and me abstain from voting since we wrote the PEP :-)
If the vote is positive, the PEP will be submitted to the Steering Council (see the SC discussion).
Update: the macro
Py_COMPAT_API_VERSIONname was changed toPy_OMIT_LEGACY_API.