René's URL Explorer Experiment


Title: gh-149163: Add PyInitConfig API (PEP 741) to the limited C API by anujbharambe · Pull Request #149194 · python/cpython · GitHub

Open Graph Title: gh-149163: Add PyInitConfig API (PEP 741) to the limited C API by anujbharambe · Pull Request #149194 · python/cpython

X Title: gh-149163: Add PyInitConfig API (PEP 741) to the limited C API by anujbharambe · Pull Request #149194 · python/cpython

Description: Closes #149163 --> cc @vstinner Summary Add the PEP 741 PyInitConfig API to the limited C API / stable ABI, so programs embedding Python (GDB, Vim, PyInstaller, etc.) can use the modern initialization API without building against the full C API. Create new top-level Include/initconfig.h following the pylifecycle.h / longobject.h pattern Move the opaque PyInitConfig typedef and 14 function declarations out of Include/cpython/initconfig.h into the new header, guarded by Py_LIMITED_API >= 0x030f0000 Register 1 struct + 14 functions in Misc/stable_abi.toml Regenerate PC/python3dll.c, Lib/test/test_stable_abi_ctypes.py, Doc/data/stable_abi.dat Add versionchanged note to Doc/c-api/init_config.rst Add changelog entry to Doc/whatsnew/3.15.rst Internal types (PyConfig, PyPreConfig, PyStatus, PyWideStringList) remain excluded from the limited API. Issue: gh-149163

Open Graph Description: Closes #149163 --> cc @vstinner Summary Add the PEP 741 PyInitConfig API to the limited C API / stable ABI, so programs embedding Python (GDB, Vim, PyInstaller, etc.) can use the modern initiali...

X Description: Closes #149163 --> cc @vstinner Summary Add the PEP 741 PyInitConfig API to the limited C API / stable ABI, so programs embedding Python (GDB, Vim, PyInstaller, etc.) can use the modern init...

Opengraph URL: https://github.com/python/cpython/pull/149194

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b2ba690d-c260-40a8-e70b-7a9ea47571dd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9A24:FCF93:D5ED4D:139EAA9:6A4E2B31
html-safe-nonce90ad7ea0ca3557a3575710f25ba4ef65062732da29c40d0636955afb2dfb8214
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTI0OkZDRjkzOkQ1RUQ0RDoxMzlFQUE5OjZBNEUyQjMxIiwidmlzaXRvcl9pZCI6IjkxNzA1NTM1MjcyNjQ0ODgyNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7c2183172f6fc4741978039bb95728916eec665d11c4d23fe745d5778c29a1e3
hovercard-subject-tagpull_request:3610893270
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/149194/files
twitter:imagehttps://avatars.githubusercontent.com/u/119653366?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/119653366?s=400&v=4
og:image:altCloses #149163 --> cc @vstinner Summary Add the PEP 741 PyInitConfig API to the limited C API / stable ABI, so programs embedding Python (GDB, Vim, PyInstaller, etc.) can use the modern initiali...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released9dd20d38f8ae3c4cb6b597807431db300d0bd2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/149194/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149194%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149194%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/149194/files
Reloadhttps://github.com/python/cpython/pull/149194/files
Reloadhttps://github.com/python/cpython/pull/149194/files
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
anujbharambehttps://github.com/anujbharambe
python:mainhttps://github.com/python/cpython/tree/main
anujbharambe:pyinitconfig-limited-apihttps://github.com/anujbharambe/cpython/tree/pyinitconfig-limited-api
Conversation 8 https://github.com/python/cpython/pull/149194
Commits 6 https://github.com/python/cpython/pull/149194/commits
Checks 50 https://github.com/python/cpython/pull/149194/checks
Files changed https://github.com/python/cpython/pull/149194/files
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
gh-149163: Add PyInitConfig API (PEP 741) to the limited C API https://github.com/python/cpython/pull/149194/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/149194/files
b6a1512 gh-149163: Add PyInitConfig API (PEP 741) to the limited C API anuj-bharambe2004 Apr 30, 2026 https://github.com/python/cpython/pull/149194/commits/b6a15120024c2051b29615a2f04f2808c69a0571
4c0dd7c Add blurb news entry for gh-149163 anuj-bharambe2004 Apr 30, 2026 https://github.com/python/cpython/pull/149194/commits/4c0dd7c3602b0a048a457c815a23f9400b404ac2
e4cc3c1 Fix sphinx-lint, stable_abi.dat type mismatch, and nitignore cleanup anuj-bharambe2004 Apr 30, 2026 https://github.com/python/cpython/pull/149194/commits/e4cc3c18cb2e54d84e5bb25355df5bfb914aa91e
f6270f2 Revert nitignore changes anuj-bharambe2004 Apr 30, 2026 https://github.com/python/cpython/pull/149194/commits/f6270f26afb1ea2d5e6d0bb1e384424fd09ee87f
b0153e7 Fix PyInitConfig docs: use c:type directive instead of c:struct anuj-bharambe2004 Apr 30, 2026 https://github.com/python/cpython/pull/149194/commits/b0153e78fdfac5c122f4c4334b17a92f8d4bf09a
74e052b Merge branch 'main' into pyinitconfig-limited-api anujbharambe Apr 30, 2026 https://github.com/python/cpython/pull/149194/commits/74e052b69aa523bc1d8694ad0992d64eeea899eb
Clear filters https://github.com/python/cpython/pull/149194/files
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
init_config.rst https://github.com/python/cpython/pull/149194/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
stable_abi.dat https://github.com/python/cpython/pull/149194/files#diff-e87eccb88c979495c493aed4127b9f9932c320edfe4d95c8e28e2ca92e8e33f3
3.15.rst https://github.com/python/cpython/pull/149194/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
Python.h https://github.com/python/cpython/pull/149194/files#diff-f60ef9db994347493c9ad11a939d46272a5b9a3d03e9aa22f186a87dd9ce8769
initconfig.h https://github.com/python/cpython/pull/149194/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
initconfig.h https://github.com/python/cpython/pull/149194/files#diff-a9b17878b3e0256b2132e1d4d9cababc336620525aa87748ea1e9bad2b7673c3
test_stable_abi_ctypes.py https://github.com/python/cpython/pull/149194/files#diff-e23b7eb96b17ef58f28bd65875edc3ec27eeb85be4c342d0c2d9c74121a74c0b
2026-05-01-01-07-30.gh-issue-149163.GQFvNF.rst https://github.com/python/cpython/pull/149194/files#diff-ab5182e34f76ae475fd0e4ad1461a913ebe0dd4ae931e8aa982aab09ed816887
stable_abi.toml https://github.com/python/cpython/pull/149194/files#diff-f098b9ddf231fb279a9f5b4b8ed22c4241e1ffed7fe0deffb2c76bb2126d2911
python3dll.c https://github.com/python/cpython/pull/149194/files#diff-be34b08a4cde4f0bfbf86bc3c427e4a3dcc3f2f472061a50d00040a0d8a57c88
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L285
Doc/c-api/init_config.rsthttps://github.com/python/cpython/pull/149194/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Doc/c-api/init_config.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/149194/{{ revealButtonHref }}
https://github.com/python/cpython/pull/149194/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
https://github.com/python/cpython/pull/149194/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
https://github.com/python/cpython/pull/149194/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
https://github.com/python/cpython/pull/149194/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
Doc/data/stable_abi.dathttps://github.com/python/cpython/pull/149194/files#diff-e87eccb88c979495c493aed4127b9f9932c320edfe4d95c8e28e2ca92e8e33f3
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Doc/data/stable_abi.dat
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.15.rsthttps://github.com/python/cpython/pull/149194/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Doc/whatsnew/3.15.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/149194/{{ revealButtonHref }}
https://github.com/python/cpython/pull/149194/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
https://github.com/python/cpython/pull/149194/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
Include/Python.hhttps://github.com/python/cpython/pull/149194/files#diff-f60ef9db994347493c9ad11a939d46272a5b9a3d03e9aa22f186a87dd9ce8769
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Include/Python.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/149194/{{ revealButtonHref }}
https://github.com/python/cpython/pull/149194/files#diff-f60ef9db994347493c9ad11a939d46272a5b9a3d03e9aa22f186a87dd9ce8769
https://github.com/python/cpython/pull/149194/files#diff-f60ef9db994347493c9ad11a939d46272a5b9a3d03e9aa22f186a87dd9ce8769
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L281
Include/cpython/initconfig.hhttps://github.com/python/cpython/pull/149194/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Include/cpython/initconfig.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/149194/{{ revealButtonHref }}
https://github.com/python/cpython/pull/149194/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
https://github.com/python/cpython/pull/149194/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L281
Include/initconfig.hhttps://github.com/python/cpython/pull/149194/files#diff-a9b17878b3e0256b2132e1d4d9cababc336620525aa87748ea1e9bad2b7673c3
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Include/initconfig.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/149194/{{ revealButtonHref }}
Lib/test/test_stable_abi_ctypes.pyhttps://github.com/python/cpython/pull/149194/files#diff-e23b7eb96b17ef58f28bd65875edc3ec27eeb85be4c342d0c2d9c74121a74c0b
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Lib/test/test_stable_abi_ctypes.py
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
Misc/NEWS.d/next/C_API/2026-05-01-01-07-30.gh-issue-149163.GQFvNF.rsthttps://github.com/python/cpython/pull/149194/files#diff-ab5182e34f76ae475fd0e4ad1461a913ebe0dd4ae931e8aa982aab09ed816887
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Misc/NEWS.d/next/C_API/2026-05-01-01-07-30.gh-issue-149163.GQFvNF.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/149194/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L142
Misc/stable_abi.tomlhttps://github.com/python/cpython/pull/149194/files#diff-f098b9ddf231fb279a9f5b4b8ed22c4241e1ffed7fe0deffb2c76bb2126d2911
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/Misc/stable_abi.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/149194/{{ revealButtonHref }}
https://github.com/python/cpython/pull/149194/files#diff-f098b9ddf231fb279a9f5b4b8ed22c4241e1ffed7fe0deffb2c76bb2126d2911
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L188
PC/python3dll.chttps://github.com/python/cpython/pull/149194/files#diff-be34b08a4cde4f0bfbf86bc3c427e4a3dcc3f2f472061a50d00040a0d8a57c88
View file https://github.com/anujbharambe/cpython/blob/74e052b69aa523bc1d8694ad0992d64eeea899eb/PC/python3dll.c
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
Please reload this pagehttps://github.com/python/cpython/pull/149194/files
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.