René's URL Explorer Experiment


Title: [PEP 741] gh-107954: Add PyConfig_Get() function by vstinner · Pull Request #112609 · python/cpython · GitHub

Open Graph Title: [PEP 741] gh-107954: Add PyConfig_Get() function by vstinner · Pull Request #112609 · python/cpython

X Title: [PEP 741] gh-107954: Add PyConfig_Get() function by vstinner · Pull Request #112609 · python/cpython

Description: Add PyConfig_Get() and PyConfig_GetInt() functions to get the current Python configuration. _PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary. Discussion: https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004 Issue: gh-107954 📚 Documentation preview 📚: https://cpython-previews--112609.org.readthedocs.build/

Open Graph Description: Add PyConfig_Get() and PyConfig_GetInt() functions to get the current Python configuration. _PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary. Discussion: https://discuss.python.org...

X Description: Add PyConfig_Get() and PyConfig_GetInt() functions to get the current Python configuration. _PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary. Discussion: https://discuss.python.org...

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

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:26596a31-2f60-d213-65b8-ee48872f0ea1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC340:2454CC:49B33E9:5D4A72A:6B02521F
html-safe-nonce333a7873826822f9a4a57e46b7682b78657f47494ddf19377c8004d18dc73f67
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzQwOjI0NTRDQzo0OUIzM0U5OjVENEE3MkE6NkIwMjUyMUYiLCJ2aXNpdG9yX2lkIjoiMjg0NTkzOTU5ODA2NzEyNjgxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf59ad25ad7fb6bd08d64b62da7fdd932a655ac2e62aa1430ca7bcb2afdedacfb
hovercard-subject-tagpull_request:1626317705
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/112609/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altAdd PyConfig_Get() and PyConfig_GetInt() functions to get the current Python configuration. _PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary. Discussion: https://discuss.python.org...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/112609/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F112609%2Ffiles
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%2Fpull%2F112609%2Ffiles
Sign uphttps://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/112609/files
Reloadhttps://github.com/python/cpython/pull/112609/files
Reloadhttps://github.com/python/cpython/pull/112609/files
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
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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:config_gethttps://github.com/vstinner/cpython/tree/config_get
Conversation 9 https://github.com/python/cpython/pull/112609
Commits 4 https://github.com/python/cpython/pull/112609/commits
Checks 0 https://github.com/python/cpython/pull/112609/checks
Files changed https://github.com/python/cpython/pull/112609/files
Please reload this pagehttps://github.com/python/cpython/pull/112609/files
[PEP 741] gh-107954: Add PyConfig_Get() function https://github.com/python/cpython/pull/112609/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/112609/files
36dcd34 gh-107954: Add PyConfig_Get() function vstinner Dec 1, 2023 https://github.com/python/cpython/pull/112609/commits/36dcd345c14705e52b6af605ddc2f57e19efe2e3
7c4a66a Fix Windows build: add Modules\_testcapi\config.c vstinner Dec 1, 2023 https://github.com/python/cpython/pull/112609/commits/7c4a66ae8d582b42cf307ee2eb261ad2d17415b9
4a34481 Update the doc vstinner Dec 5, 2023 https://github.com/python/cpython/pull/112609/commits/4a344812f129982800be05bdae7a0df789a67215
51c67ff mention config_get_sys_write_bytecode() around write_bytecode spec vstinner Dec 8, 2023 https://github.com/python/cpython/pull/112609/commits/51c67ff269d6e735cfcf261900ee62614216e729
Clear filters https://github.com/python/cpython/pull/112609/files
Please reload this pagehttps://github.com/python/cpython/pull/112609/files
Please reload this pagehttps://github.com/python/cpython/pull/112609/files
init_config.rst https://github.com/python/cpython/pull/112609/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
3.13.rst https://github.com/python/cpython/pull/112609/files#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f
initconfig.h https://github.com/python/cpython/pull/112609/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
pycore_initconfig.h https://github.com/python/cpython/pull/112609/files#diff-18955faf9bcc909d91ecdd289135e41643c0c499eb5039424c26ee6f18be53f7
_test_embed_set_config.py https://github.com/python/cpython/pull/112609/files#diff-b7fe11424d0bbf1a489b20290315d854a3170c0d3973652d6b6dea0390191d2d
test_config.py https://github.com/python/cpython/pull/112609/files#diff-6d447bbdd654d28c3835f8c580f223ef8a356e6991640720d44969a0fc6b6f9f
test_embed.py https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
2023-12-01-21-13-32.gh-issue-107954.GO4oND.rst https://github.com/python/cpython/pull/112609/files#diff-e529e210c7026838ba30bdddc8992068b0258e1a276a21bfc2a701a2befcabe0
Setup.stdlib.in https://github.com/python/cpython/pull/112609/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
config.c https://github.com/python/cpython/pull/112609/files#diff-16d658b2917fbd3c66922b76cd9e942dfa34677b28fb3b22a52a4ff226daaff3
parts.h https://github.com/python/cpython/pull/112609/files#diff-cda7cf7eb449238a999023ecd2b9e421c402b83d4ab7a16d2bf9cce68dad32ba
_testcapimodule.c https://github.com/python/cpython/pull/112609/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
_testcapi.vcxproj https://github.com/python/cpython/pull/112609/files#diff-84a64a18e83c2b6057a2eb75ee9c6bf2695a4948b62f8bd268a0f4f46d774830
_testcapi.vcxproj.filters https://github.com/python/cpython/pull/112609/files#diff-5772d42704a7c3ceafeaabcda5f995cb70bd48acd70c9c4d2e5bf2319a706bb3
initconfig.c https://github.com/python/cpython/pull/112609/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
sysmodule.c https://github.com/python/cpython/pull/112609/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L282
Doc/c-api/init_config.rsthttps://github.com/python/cpython/pull/112609/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Doc/c-api/init_config.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
https://github.com/python/cpython/pull/112609/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
https://github.com/python/cpython/pull/112609/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.13.rsthttps://github.com/python/cpython/pull/112609/files#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Doc/whatsnew/3.13.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
https://github.com/python/cpython/pull/112609/files#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f
https://github.com/python/cpython/pull/112609/files#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f
https://github.com/python/cpython/pull/112609/files#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f
https://github.com/python/cpython/pull/112609/files#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L278
Include/cpython/initconfig.hhttps://github.com/python/cpython/pull/112609/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Include/cpython/initconfig.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
https://github.com/python/cpython/pull/112609/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
https://github.com/python/cpython/pull/112609/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L278
Include/internal/pycore_initconfig.hhttps://github.com/python/cpython/pull/112609/files#diff-18955faf9bcc909d91ecdd289135e41643c0c499eb5039424c26ee6f18be53f7
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Include/internal/pycore_initconfig.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
https://github.com/python/cpython/pull/112609/files#diff-18955faf9bcc909d91ecdd289135e41643c0c499eb5039424c26ee6f18be53f7
https://github.com/python/cpython/pull/112609/files#diff-18955faf9bcc909d91ecdd289135e41643c0c499eb5039424c26ee6f18be53f7
Lib/test/_test_embed_set_config.pyhttps://github.com/python/cpython/pull/112609/files#diff-b7fe11424d0bbf1a489b20290315d854a3170c0d3973652d6b6dea0390191d2d
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Lib/test/_test_embed_set_config.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
https://github.com/python/cpython/pull/112609/files#diff-b7fe11424d0bbf1a489b20290315d854a3170c0d3973652d6b6dea0390191d2d
https://github.com/python/cpython/pull/112609/files#diff-b7fe11424d0bbf1a489b20290315d854a3170c0d3973652d6b6dea0390191d2d
https://github.com/python/cpython/pull/112609/files#diff-b7fe11424d0bbf1a489b20290315d854a3170c0d3973652d6b6dea0390191d2d
https://github.com/python/cpython/pull/112609/files#diff-b7fe11424d0bbf1a489b20290315d854a3170c0d3973652d6b6dea0390191d2d
Lib/test/test_capi/test_config.pyhttps://github.com/python/cpython/pull/112609/files#diff-6d447bbdd654d28c3835f8c580f223ef8a356e6991640720d44969a0fc6b6f9f
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Lib/test/test_capi/test_config.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
Lib/test/test_embed.pyhttps://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Lib/test/test_embed.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/112609/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
Misc/NEWS.d/next/C API/2023-12-01-21-13-32.gh-issue-107954.GO4oND.rsthttps://github.com/python/cpython/pull/112609/files#diff-e529e210c7026838ba30bdddc8992068b0258e1a276a21bfc2a701a2befcabe0
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Misc/NEWS.d/next/C%20API/2023-12-01-21-13-32.gh-issue-107954.GO4oND.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L87
Modules/Setup.stdlib.inhttps://github.com/python/cpython/pull/112609/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Modules/Setup.stdlib.in
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
https://github.com/python/cpython/pull/112609/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
https://github.com/python/cpython/pull/112609/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
Modules/_testcapi/config.chttps://github.com/python/cpython/pull/112609/files#diff-16d658b2917fbd3c66922b76cd9e942dfa34677b28fb3b22a52a4ff226daaff3
View file https://github.com/vstinner/cpython/blob/51c67ff269d6e735cfcf261900ee62614216e729/Modules/_testcapi/config.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/112609/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/112609/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.