René's URL Explorer Experiment


Title: [C API] PEP 741: Add PyInitConfig C API to customize the Python initialization · Issue #107954 · python/cpython · GitHub

Open Graph Title: [C API] PEP 741: Add PyInitConfig C API to customize the Python initialization · Issue #107954 · python/cpython

X Title: [C API] PEP 741: Add PyInitConfig C API to customize the Python initialization · Issue #107954 · python/cpython

Description: Links to previous discussion of this feature: https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004 Summary of proposal: Add a text-based configuration to Python initiali...

Open Graph Description: Links to previous discussion of this feature: https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004 Summary of proposal: Add a tex...

X Description: Links to previous discussion of this feature: https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004 Summary of proposal: Add a tex...

Opengraph URL: https://github.com/python/cpython/issues/107954

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[C API] PEP 741: Add PyInitConfig C API to customize the Python initialization","articleBody":"### Links to previous discussion of this feature:\r\n\r\nhttps://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004\r\n\r\n### Summary of proposal:\r\n\r\nAdd a text-based configuration to Python initialization\r\n\r\n### Pitch:\r\n\r\nAn API should be added to the limited C API customize the Python initialization (PyConfig API, PEP 587).\r\n\r\nThe 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()).\r\n\r\n\u003c!-- gh-linked-prs -->\r\n### Linked PRs\r\n* gh-110145\r\n* gh-110146\r\n* gh-110176\r\n* gh-112609\r\n* gh-116359\n* gh-123472\n* gh-123502\n* gh-123663\n* gh-123668\n* gh-124636\n* gh-127056\n* gh-132954\n* gh-132958\n\u003c!-- /gh-linked-prs -->\r\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-08-14T22:57:37Z","url":"https://github.com/python/cpython/issues/107954"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:068f8911-e77f-c631-ab79-73c23500e35a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEC08:1AE20C:4B8B479:5F61CBA:6B024B44
html-safe-noncefa4e89a42e199b6b5fcfae0d8e3e481dfb046872299d414aac30c7df62d37a9e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzA4OjFBRTIwQzo0QjhCNDc5OjVGNjFDQkE6NkIwMjRCNDQiLCJ2aXNpdG9yX2lkIjoiNzcxMDUzOTMxNDA4OTgzOTQyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac280665a4851f2590840650376b1eb1bdd0c464f8edc98096f8abf9bef3850f86
hovercard-subject-tagissue:1850673514
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/107954/issue_layout
twitter:imagehttps://opengraph.githubassets.com/44827c2470fc3febdae31c9107d32963084c8cb2f2b1d477d66498bdb11b17ec/python/cpython/issues/107954
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/44827c2470fc3febdae31c9107d32963084c8cb2f2b1d477d66498bdb11b17ec/python/cpython/issues/107954
og:image:altLinks to previous discussion of this feature: https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004 Summary of proposal: Add a tex...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/107954#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F107954
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F107954
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/107954
Reloadhttps://github.com/python/cpython/issues/107954
Reloadhttps://github.com/python/cpython/issues/107954
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/107954
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/107954
[C API] PEP 741: Add PyInitConfig C API to customize the Python initializationhttps://github.com/python/cpython/issues/107954#top
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Aug 14, 2023https://github.com/python/cpython/issues/107954#issue-1850673514
https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004
[WIP] gh-107954: Add _PyConfig_Parse() #110145https://github.com/python/cpython/pull/110145
gh-107954: Refactor initconfig.c: add CONFIG_SPEC #110146https://github.com/python/cpython/pull/110146
[PEP 741] gh-107954: Add PyInitConfig C API #110176https://github.com/python/cpython/pull/110176
[PEP 741] gh-107954: Add PyConfig_Get() function #112609https://github.com/python/cpython/pull/112609
gh-107954: Add PyConfig_MEMBER_BOOL type to PyConfigSpec #116359https://github.com/python/cpython/pull/116359
gh-107954, PEP 741: Add PyConfig_Get() function #123472https://github.com/python/cpython/pull/123472
gh-107954, PEP 741: Add PyInitConfig C API #123502https://github.com/python/cpython/pull/123502
gh-107954, PEP 741: Adjust Python initialization config #123663https://github.com/python/cpython/pull/123663
gh-107954, PEP 741: Add PyInitConfig_AddModule() function #123668https://github.com/python/cpython/pull/123668
gh-107954: Fix configuration type for the perf profiler #124636https://github.com/python/cpython/pull/124636
gh-107954: Document PEP 741 in What's New 3.14 #127056https://github.com/python/cpython/pull/127056
gh-107954: Allow setting cpu_count in PyConfig_Set() #132954https://github.com/python/cpython/pull/132954
gh-107954: Add audit event to PyConfig_Set() #132958https://github.com/python/cpython/pull/132958
Nexthttps://github.com/python/cpython/issues/107954?timeline_page=1
vstinnerhttps://github.com/vstinner
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
on Aug 14, 2023https://github.com/python/cpython/issues/107954#event-10092361144
https://github.com/LostTime76
LostTime76https://github.com/LostTime76
on Aug 15, 2023https://github.com/python/cpython/issues/107954#issuecomment-1678341195
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Aug 15, 2023https://github.com/python/cpython/issues/107954#issuecomment-1678846506
vstinnerhttps://github.com/vstinner
on Sep 30, 2023https://github.com/python/cpython/issues/107954#event-10517506744
pythongh-107954: Add _PyConfig_Parse()https://github.com/vstinner/cpython/commit/fa98a1c4a954971730fb3cc1153f23f86797100e
pythongh-107954https://github.com/python/cpython/issues/107954
fa98a1chttps://github.com/vstinner/cpython/commit/fa98a1c4a954971730fb3cc1153f23f86797100e
pythongh-107954: Refactor initconfig.c, add CONFIG_SPEChttps://github.com/vstinner/cpython/commit/01fcc4cd9913d9258c48e7aa03e80d6d25dc4f19
pythongh-107954https://github.com/python/cpython/issues/107954
01fcc4chttps://github.com/vstinner/cpython/commit/01fcc4cd9913d9258c48e7aa03e80d6d25dc4f19
pythongh-107954: Refactor initconfig.c: add CONFIG_SPEChttps://github.com/vstinner/cpython/commit/92d80d6d07864f8f87af89290e56d4295550f776
pythongh-107954https://github.com/python/cpython/issues/107954
92d80d6https://github.com/vstinner/cpython/commit/92d80d6d07864f8f87af89290e56d4295550f776
pythongh-107954: Refactor initconfig.c: add CONFIG_SPEChttps://github.com/vstinner/cpython/commit/c09b9a4eed40121f77e3cc3f2fc35ce612f27399
pythongh-107954https://github.com/python/cpython/issues/107954
c09b9a4https://github.com/vstinner/cpython/commit/c09b9a4eed40121f77e3cc3f2fc35ce612f27399
pythongh-107954: Add _PyConfig_Parse()https://github.com/vstinner/cpython/commit/96cb693b12046c323c5cf6b2b217fda32bc95f2b
pythongh-107954https://github.com/python/cpython/issues/107954
96cb693https://github.com/vstinner/cpython/commit/96cb693b12046c323c5cf6b2b217fda32bc95f2b
pythongh-107954: Refactor initconfig.c: add CONFIG_SPEChttps://github.com/vstinner/cpython/commit/71916297b2ba0c7127be2ecca3a884d818907b2e
pythongh-107954https://github.com/python/cpython/issues/107954
7191629https://github.com/vstinner/cpython/commit/71916297b2ba0c7127be2ecca3a884d818907b2e
gh-107954: Refactor initconfig.c: add CONFIG_SPEC (#110146)https://github.com/python/cpython/commit/f3bb00ea12db6525f07d62368a65efec47d192b9
gh-107954https://github.com/python/cpython/issues/107954
#110146https://github.com/python/cpython/pull/110146
f3bb00ehttps://github.com/python/cpython/commit/f3bb00ea12db6525f07d62368a65efec47d192b9
pythongh-107954: Add _PyConfig_Parse()https://github.com/vstinner/cpython/commit/e6e4e5cd5ee403513bdfc6d4466d2b2475021358
pythongh-107954https://github.com/python/cpython/issues/107954
e6e4e5chttps://github.com/vstinner/cpython/commit/e6e4e5cd5ee403513bdfc6d4466d2b2475021358
pythongh-107954: Add PyInitConfig C APIhttps://github.com/vstinner/cpython/commit/7ea38bf7198bb594629fafb7d4845ccaebdbb01f
pythongh-107954https://github.com/python/cpython/issues/107954
7ea38bfhttps://github.com/vstinner/cpython/commit/7ea38bf7198bb594629fafb7d4845ccaebdbb01f
pythongh-107954: Add PyInitConfig C APIhttps://github.com/vstinner/cpython/commit/4bee604d4efe03f498ab1247f93b350c5a0903f0
pythongh-107954https://github.com/python/cpython/issues/107954
4bee604https://github.com/vstinner/cpython/commit/4bee604d4efe03f498ab1247f93b350c5a0903f0
pythongh-107954: Add PyInitConfig C APIhttps://github.com/vstinner/cpython/commit/2b5a76c247bd5578437c715542e1bbf62d81d6a1
pythongh-107954https://github.com/python/cpython/issues/107954
2b5a76chttps://github.com/vstinner/cpython/commit/2b5a76c247bd5578437c715542e1bbf62d81d6a1
vstinnerhttps://github.com/vstinner
on Sep 4, 2024https://github.com/python/cpython/issues/107954#event-14128834936
pythongh-107954, PEP 741: Add PyInitConfig_AddModule() functionhttps://github.com/vstinner/cpython/commit/5241126cbd7c3d86b5ca2992b80ba7c50ecfe697
pythongh-107954https://github.com/python/cpython/issues/107954
5241126https://github.com/vstinner/cpython/commit/5241126cbd7c3d86b5ca2992b80ba7c50ecfe697
gh-107954, PEP 741: Add PyInitConfig_AddModule() function (#123668)https://github.com/python/cpython/commit/0d6b6e34a2980d3d9c342f7ce66e82a39eca295e
gh-107954https://github.com/python/cpython/issues/107954
#123668https://github.com/python/cpython/pull/123668
0d6b6e3https://github.com/python/cpython/commit/0d6b6e34a2980d3d9c342f7ce66e82a39eca295e
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 6, 2024https://github.com/python/cpython/issues/107954#issuecomment-2334193789
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 6, 2024https://github.com/python/cpython/issues/107954#event-14163154043
pablogsalhttps://github.com/pablogsal
on Sep 26, 2024https://github.com/python/cpython/issues/107954#event-14423036919
pythongh-107954: Fix configuration type for the perf profilerhttps://github.com/pablogsal/cpython/commit/3fb0be939912b5a73f438794b99747d8b4eb31b3
pythongh-107954https://github.com/python/cpython/issues/107954
3fb0be9https://github.com/pablogsal/cpython/commit/3fb0be939912b5a73f438794b99747d8b4eb31b3
pythongh-107954: Fix configuration type for the perf profilerhttps://github.com/pablogsal/cpython/commit/60921992d1bc8e3c82dd93d6f04bf42ab1681568
pythongh-107954https://github.com/python/cpython/issues/107954
6092199https://github.com/pablogsal/cpython/commit/60921992d1bc8e3c82dd93d6f04bf42ab1681568
ambvhttps://github.com/ambv
on Sep 27, 2024https://github.com/python/cpython/issues/107954#event-14438172391
gh-107954: Fix configuration type for the perf profiler (#124636)https://github.com/python/cpython/commit/02b49c51501f5eeef3ab5d74fb9eace1151a1359
gh-107954https://github.com/python/cpython/issues/107954
#124636https://github.com/python/cpython/pull/124636
02b49c5https://github.com/python/cpython/commit/02b49c51501f5eeef3ab5d74fb9eace1151a1359
vstinnerhttps://github.com/vstinner
on Nov 20, 2024https://github.com/python/cpython/issues/107954#event-15365502210
pythongh-107954: Document PEP 741 in What's New 3.14https://github.com/vstinner/cpython/commit/796b17b22258170b6621f7140d7a1be1d8cdbef8
pythongh-107954https://github.com/python/cpython/issues/107954
796b17bhttps://github.com/vstinner/cpython/commit/796b17b22258170b6621f7140d7a1be1d8cdbef8
gh-107954: Document PEP 741 in What's New 3.14 (#127056)https://github.com/python/cpython/commit/d9331f1b16033796a3958f6e0b12626ed7d3e199
gh-107954https://github.com/python/cpython/issues/107954
#127056https://github.com/python/cpython/pull/127056
d9331f1https://github.com/python/cpython/commit/d9331f1b16033796a3958f6e0b12626ed7d3e199
ebonnalhttps://github.com/ebonnal
on Jan 12, 2025https://github.com/python/cpython/issues/107954#event-15894562476
pythongh-107954: Document PEP 741 in What's New 3.14 (python#127056)https://github.com/ebonnal/cpython/commit/0caf1a4c959a12a675b02dfef2eb1778e7afad23
pythongh-107954https://github.com/python/cpython/issues/107954
python#127056https://github.com/python/cpython/pull/127056
0caf1a4https://github.com/ebonnal/cpython/commit/0caf1a4c959a12a675b02dfef2eb1778e7afad23
vstinnerhttps://github.com/vstinner
on Apr 25, 2025https://github.com/python/cpython/issues/107954#event-17408470290
pythongh-107954: Allow setting cpu_count in PyConfig_Set()https://github.com/vstinner/cpython/commit/048c99585010ee422f6731b5acd997cfd4d8a56c
pythongh-107954https://github.com/python/cpython/issues/107954
048c995https://github.com/vstinner/cpython/commit/048c99585010ee422f6731b5acd997cfd4d8a56c
pythongh-107954: Allow setting cpu_count in PyConfig_Set()https://github.com/vstinner/cpython/commit/60d4eb329398fcc9e81a5f3b942ba41ed44b3ea9
pythongh-107954https://github.com/python/cpython/issues/107954
60d4eb3https://github.com/vstinner/cpython/commit/60d4eb329398fcc9e81a5f3b942ba41ed44b3ea9
pythongh-107954: Add audit event to PyConfig_Set()https://github.com/vstinner/cpython/commit/93f7f9bd84f6050c17ece004628a1b00869c8864
pythongh-107954https://github.com/python/cpython/issues/107954
93f7f9bhttps://github.com/vstinner/cpython/commit/93f7f9bd84f6050c17ece004628a1b00869c8864
gh-107954: Allow setting cpu_count in PyConfig_Set() (#132954)https://github.com/python/cpython/commit/070d8665670e929ddf26a217d2c1a4116f82d30e
gh-107954https://github.com/python/cpython/issues/107954
#132954https://github.com/python/cpython/pull/132954
070d866https://github.com/python/cpython/commit/070d8665670e929ddf26a217d2c1a4116f82d30e
gh-107954: Add audit event to PyConfig_Set() (#132958)https://github.com/python/cpython/commit/ac5424d6a9f5aa37432cbbf366745f708f44a8ec
gh-107954https://github.com/python/cpython/issues/107954
#132958https://github.com/python/cpython/pull/132958
ac5424dhttps://github.com/python/cpython/commit/ac5424d6a9f5aa37432cbbf366745f708f44a8ec
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/107954
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/107954
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.