Closed
Description
Links to previous discussion of this feature:
Summary of proposal:
Add a text-based configuration to Python initialization
Pitch:
An API should be added to the limited C API customize the Python initialization (PyConfig API, PEP 587).
The problem is that the PyConfig C API is excluded from the limited C API, whereas the legacy initialization API is deprecated (ex: Py_VerboseFlag in Python 3.12) and being removed in Python 3.13 (ex: PySys_SetPath()).
Linked PRs
- [WIP] gh-107954: Add _PyConfig_Parse() #110145
- gh-107954: Refactor initconfig.c: add CONFIG_SPEC #110146
- [PEP 741] gh-107954: Add PyInitConfig C API #110176
- [PEP 741] gh-107954: Add PyConfig_Get() function #112609
- gh-107954: Add PyConfig_MEMBER_BOOL type to PyConfigSpec #116359
- gh-107954, PEP 741: Add PyConfig_Get() function #123472
- gh-107954, PEP 741: Add PyInitConfig C API #123502
- gh-107954, PEP 741: Adjust Python initialization config #123663
- gh-107954, PEP 741: Add PyInitConfig_AddModule() function #123668
- gh-107954: Fix configuration type for the perf profiler #124636
- gh-107954: Document PEP 741 in What's New 3.14 #127056
- gh-107954: Allow setting cpu_count in PyConfig_Set() #132954
- gh-107954: Add audit event to PyConfig_Set() #132958