Skip to content

26 C APIs scheduled for removal in 3.16 are still present #154757

Open

Description

@fedonman

Proposal:

Doc/deprecations/c-api-pending-removal-in-3.16.rst lists 26 C APIs due to be removed in 3.16. All 26 are still in Include/ on main, still marked Py_DEPRECATED:

Py_SetProgramName and PySys_SetArgv were removed once in 3.13 and restored in gh-117987 after it broke packages, so this is not a mechanical removal.

The file is also not included from Doc/deprecations/index.rst, so these deprecations are currently not listed on the Deprecations page.

Has this already been discussed elsewhere?

No response given

Linked PRs

Activity

  1. changed the title [-]C API deprecations due in 3.16 are missing from the Deprecations page[/-] [+]26 C APIs scheduled for removal in 3.16 are still present[/+] on Jul 27, 2026
  2. StanFromIreland commented on Jul 27, 2026

    @StanFromIreland
    Member

    We intentionally don’t list them as deprecations in the docs for the version they are being removed in.

  3. picnixz commented on Jul 27, 2026

    @picnixz
    Member

    There are reasons why we did not yet remove some Py_Sys one becsuse they are used elsewhere.

  4. vstinner commented on Sep 23, 2026

    @vstinner
    Member

    I created issue gh-158001 to "remove deprecated API to configure Python initialization".

  5. added 5 commits that reference this issue on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions