python / python/cpython

Remove deprecated C API objects slated for removal in 3.15

Open
#133,644 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.15 interpreter-core topic-C-API
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Proposal:

This issue serves as a tracker for removing the following parts of the C API:

  • Global configuration variables: #133654
  • Process-wide parameters: #133661
  • PyImport_ImportModuleNoBlock: #133655
  • PyWeakref_GetObject and PyWeakref_GET_OBJECT: #133657
  • Functions to configure Python's initialization (PySys_Set* & co)
  • Py_UNICODE_WIDE and Py_UNICODE type

Tracked separately:

I'll take care of doing the other deprecation removals and update c-api-pending-removal-in-3-15.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs
  • gh-133654
  • gh-133655
  • gh-133657
  • gh-133661
  • gh-133665
  • gh-133749
  • gh-133751
  • gh-133752
  • gh-136277
  • gh-138887

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the remaining unchecked C API items in this tracker and the c-api-pending-removal-in-3-15 list. The linked pull requests show that much of the work is already underway; done would mean completing the outstanding removals and updating the pending-removal list.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
api
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.