Skip to content

PEP 743 – Add Py_OMIT_LEGACY_API to the Python C API #49

@vstinner

Description

@vstinner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    voteThe WG is voting (or has voted)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions