René's URL Explorer Experiment


Title: gh-81057: Move More Globals in Core Code to _PyRuntimeState by ericsnowcurrently · Pull Request #99516 · python/cpython · GitHub

Open Graph Title: gh-81057: Move More Globals in Core Code to _PyRuntimeState by ericsnowcurrently · Pull Request #99516 · python/cpython

X Title: gh-81057: Move More Globals in Core Code to _PyRuntimeState by ericsnowcurrently · Pull Request #99516 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: I've tried to minimize churn as much as possible. Issue: [subinterpreters] Global C variables are a problem #81057

X Description: I've tried to minimize churn as much as possible. Issue: [subinterpreters] Global C variables are a problem #81057

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:5795968b-caa2-4c77-da46-93166edc28ab
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCE0C:27157C:C406E:10A6F2:69696327
html-safe-nonce3ead8c4a585a89e4d4d16e28b6b28a0b73964b7cac0a79865eba46a4cdf339cc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTBDOjI3MTU3QzpDNDA2RToxMEE2RjI6Njk2OTYzMjciLCJ2aXNpdG9yX2lkIjoiMzY1ODI1Njc5NTc3NjQxMDQwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca680052e827854be8a4a7194c561abaefdbfbcb241100d463f2b075e6d4c7829
hovercard-subject-tagpull_request:1123469849
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/99516/commits
twitter:imagehttps://opengraph.githubassets.com/999a1778255646e05956b1cb830578b1afc3f09acb43d4cee7ab988d30de6d15/python/cpython/pull/99516
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/999a1778255646e05956b1cb830578b1afc3f09acb43d4cee7ab988d30de6d15/python/cpython/pull/99516
og:image:altI've tried to minimize churn as much as possible. Issue: [subinterpreters] Global C variables are a problem #81057
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
None48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1
turbo-cache-controlno-cache
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
release669463fcc54773a88c1f5a44eef6b99a5504b9c7
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/99516/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F99516%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2F99516%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/99516/commits
Reloadhttps://github.com/python/cpython/pull/99516/commits
Reloadhttps://github.com/python/cpython/pull/99516/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/99516/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/99516/commits
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 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:consolidate-core-globals-2https://github.com/ericsnowcurrently/cpython/tree/consolidate-core-globals-2
Conversationhttps://github.com/python/cpython/pull/99516
Commits18 (18)https://github.com/python/cpython/pull/99516/commits
Checkshttps://github.com/python/cpython/pull/99516/checks
Files changedhttps://github.com/python/cpython/pull/99516/files
gh-81057: Move More Globals in Core Code to _PyRuntimeStatehttps://github.com/python/cpython/pull/99516/commits#top
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:consolidate-core-globals-2https://github.com/ericsnowcurrently/cpython/tree/consolidate-core-globals-2
Drop outdated whitelist entries.https://github.com/python/cpython/pull/99516/commits/caec5515745fd2586b21a0573bfa5c04534a80a3
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
caec551https://github.com/python/cpython/pull/99516/commits/caec5515745fd2586b21a0573bfa5c04534a80a3
https://github.com/python/cpython/tree/caec5515745fd2586b21a0573bfa5c04534a80a3
Move make_pending_calls():busy to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/f6b90ee1f87ca0a662cb1c35e63eddf9f7c2f737
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
f6b90eehttps://github.com/python/cpython/pull/99516/commits/f6b90ee1f87ca0a662cb1c35e63eddf9f7c2f737
https://github.com/python/cpython/tree/f6b90ee1f87ca0a662cb1c35e63eddf9f7c2f737
Move urandom_cache to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/a6be5a3987be214015c4c7f7bea787cd65a017b7
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
a6be5a3https://github.com/python/cpython/pull/99516/commits/a6be5a3987be214015c4c7f7bea787cd65a017b7
https://github.com/python/cpython/tree/a6be5a3987be214015c4c7f7bea787cd65a017b7
Move float_format/double_format to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/fb33edeffd47e6aa811bc89bd9d08e162c32246a
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
fb33edehttps://github.com/python/cpython/pull/99516/commits/fb33edeffd47e6aa811bc89bd9d08e162c32246a
https://github.com/python/cpython/tree/fb33edeffd47e6aa811bc89bd9d08e162c32246a
Special-case the hash secret.https://github.com/python/cpython/pull/99516/commits/bd1a66df4baef02289691c90cfa80e85dd2bbddb
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
bd1a66dhttps://github.com/python/cpython/pull/99516/commits/bd1a66df4baef02289691c90cfa80e85dd2bbddb
https://github.com/python/cpython/tree/bd1a66df4baef02289691c90cfa80e85dd2bbddb
Re-organize the ingored list.https://github.com/python/cpython/pull/99516/commits/1da0a3397471db5cfbc7a0e661b3294385aaa6c2
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
1da0a33https://github.com/python/cpython/pull/99516/commits/1da0a3397471db5cfbc7a0e661b3294385aaa6c2
https://github.com/python/cpython/tree/1da0a3397471db5cfbc7a0e661b3294385aaa6c2
Drop an old global from the ingored list.https://github.com/python/cpython/pull/99516/commits/03481e2355721f03cf68240b0bf62c8a7d376ff0
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
03481e2https://github.com/python/cpython/pull/99516/commits/03481e2355721f03cf68240b0bf62c8a7d376ff0
https://github.com/python/cpython/tree/03481e2355721f03cf68240b0bf62c8a7d376ff0
Only initialize bloom_linebreak once in the process.https://github.com/python/cpython/pull/99516/commits/e50ea0757b91ff7e1537599683b1324899fcc5dd
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
e50ea07https://github.com/python/cpython/pull/99516/commits/e50ea0757b91ff7e1537599683b1324899fcc5dd
https://github.com/python/cpython/tree/e50ea0757b91ff7e1537599683b1324899fcc5dd
Clarify an ignore list header.https://github.com/python/cpython/pull/99516/commits/a55e26a704ce0f5a243758d61b2664636a0e06b0
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
a55e26ahttps://github.com/python/cpython/pull/99516/commits/a55e26a704ce0f5a243758d61b2664636a0e06b0
https://github.com/python/cpython/tree/a55e26a704ce0f5a243758d61b2664636a0e06b0
Move memo_statistics to the ignored list.https://github.com/python/cpython/pull/99516/commits/fd3ec4006affbdf9db49e48bb099ef2a90eb6c86
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
fd3ec40https://github.com/python/cpython/pull/99516/commits/fd3ec4006affbdf9db49e48bb099ef2a90eb6c86
https://github.com/python/cpython/tree/fd3ec4006affbdf9db49e48bb099ef2a90eb6c86
runtime.unicode_ids -> runtime.unicode_state.ids.https://github.com/python/cpython/pull/99516/commits/d04d9da11a13469743268b1c91ca0b533eb298cd
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
d04d9dahttps://github.com/python/cpython/pull/99516/commits/d04d9da11a13469743268b1c91ca0b533eb298cd
https://github.com/python/cpython/tree/d04d9da11a13469743268b1c91ca0b533eb298cd
Move force_ascii to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/4e13ded3a2529581b0ccce14dfc1322ae5af1ae6
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
4e13dedhttps://github.com/python/cpython/pull/99516/commits/4e13ded3a2529581b0ccce14dfc1322ae5af1ae6
https://github.com/python/cpython/tree/4e13ded3a2529581b0ccce14dfc1322ae5af1ae6
Move _Py_PackageContext to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/e8ad283237a22a36bb584e7ef16fce09881ff3c8
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
e8ad283https://github.com/python/cpython/pull/99516/commits/e8ad283237a22a36bb584e7ef16fce09881ff3c8
https://github.com/python/cpython/tree/e8ad283237a22a36bb584e7ef16fce09881ff3c8
Move _Py_FatalErrorFormat():reentrant to the ignored list.https://github.com/python/cpython/pull/99516/commits/22135f757aaa1b8af674253ecdd6f86e0783269a
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
22135f7https://github.com/python/cpython/pull/99516/commits/22135f757aaa1b8af674253ecdd6f86e0783269a
https://github.com/python/cpython/tree/22135f757aaa1b8af674253ecdd6f86e0783269a
Move PyFPE_counter to the ignored list.https://github.com/python/cpython/pull/99516/commits/426b34e80be917c6f802b8dd209c855f52a79807
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
426b34ehttps://github.com/python/cpython/pull/99516/commits/426b34e80be917c6f802b8dd209c855f52a79807
https://github.com/python/cpython/tree/426b34e80be917c6f802b8dd209c855f52a79807
Move _Py_UnhandledKeyboardInterrupt to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/ffdd34adca6a45f505fd86152c04b460d17b88eb
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
ffdd34ahttps://github.com/python/cpython/pull/99516/commits/ffdd34adca6a45f505fd86152c04b460d17b88eb
https://github.com/python/cpython/tree/ffdd34adca6a45f505fd86152c04b460d17b88eb
Fix pyhash_runtime_state on Windows.https://github.com/python/cpython/pull/99516/commits/248a69c3325930b189ecdf912d7ef20606b99bbb
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
248a69chttps://github.com/python/cpython/pull/99516/commits/248a69c3325930b189ecdf912d7ef20606b99bbb
https://github.com/python/cpython/tree/248a69c3325930b189ecdf912d7ef20606b99bbb
Fix pyhash_runtime_state on Windows.https://github.com/python/cpython/pull/99516/commits/a4a55d1211e493d3aff03b1901dc91285b3286e8
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
a4a55d1https://github.com/python/cpython/pull/99516/commits/a4a55d1211e493d3aff03b1901dc91285b3286e8
https://github.com/python/cpython/tree/a4a55d1211e493d3aff03b1901dc91285b3286e8
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.