Remove deprecated C API objects slated for removal in 3.15
Open
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_GetObjectandPyWeakref_GET_OBJECT: #133657 - Functions to configure Python's initialization (
PySys_Set*& co) -
Py_UNICODE_WIDEandPy_UNICODEtype
Tracked separately:
-
vendored copy of(deferred to Python 3.16)libmpdecimal: #115119. -
PyUnicode_As{Encoded,Decoded}{Object,Unicode}: #133610 cc @StanFromIreland -
PySys_ResetWarnOptionshttps://github.com/python/cpython/issues/138886 cc @sobolevn
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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