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: I've tried to minimize churn as much as possible. Issue: [subinterpreters] Global C variables are a problem #81057

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:a07f5af5-f5c1-b52f-19bd-90a2291a12f4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id94AA:1BB780:1404DD5:1B4B10B:69694C1A
html-safe-nonce942ce9680dffbc964a1406197d086554ad1b1baee667b07eb6a192a969cb2969
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEFBOjFCQjc4MDoxNDA0REQ1OjFCNEIxMEI6Njk2OTRDMUEiLCJ2aXNpdG9yX2lkIjoiNjE2NzM5NDY1MTY1MjgzNjM3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac390224e2da549324d7c270e18d9cc6ebe11daebd38e65cec428e2436bf0737a8
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/99516/pull_request_layout
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
None54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d
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
released69ac0477df0f87da03b8b06cebd187012d7a930
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/99516#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F99516
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
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/99516
Reloadhttps://github.com/python/cpython/pull/99516
Reloadhttps://github.com/python/cpython/pull/99516
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/99516
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
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
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
Jump to bottomhttps://github.com/python/cpython/pull/99516#issue-comment-box
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
gh-81057: Move More Globals in Core Code to _PyRuntimeState https://github.com/python/cpython/pull/99516#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
Conversation 1 https://github.com/python/cpython/pull/99516
Commits 18 https://github.com/python/cpython/pull/99516/commits
Checks 0 https://github.com/python/cpython/pull/99516/checks
Files changed https://github.com/python/cpython/pull/99516/files
Please reload this pagehttps://github.com/python/cpython/pull/99516
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Nov 15, 2022https://github.com/python/cpython/pull/99516#issue-1450454946
Please reload this pagehttps://github.com/python/cpython/pull/99516
[subinterpreters] Global C variables are a problem #81057https://github.com/python/cpython/issues/81057
Please reload this pagehttps://github.com/python/cpython/pull/99516
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
November 15, 2022 09:46https://github.com/python/cpython/pull/99516#commits-pushed-caec551
https://github.com/ericsnowcurrently
Drop outdated whitelist entries.https://github.com/python/cpython/pull/99516/commits/caec5515745fd2586b21a0573bfa5c04534a80a3
caec551https://github.com/python/cpython/pull/99516/commits/caec5515745fd2586b21a0573bfa5c04534a80a3
https://github.com/ericsnowcurrently
Move make_pending_calls():busy to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/f6b90ee1f87ca0a662cb1c35e63eddf9f7c2f737
f6b90eehttps://github.com/python/cpython/pull/99516/commits/f6b90ee1f87ca0a662cb1c35e63eddf9f7c2f737
https://github.com/ericsnowcurrently
Move urandom_cache to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/a6be5a3987be214015c4c7f7bea787cd65a017b7
a6be5a3https://github.com/python/cpython/pull/99516/commits/a6be5a3987be214015c4c7f7bea787cd65a017b7
https://github.com/ericsnowcurrently
Move float_format/double_format to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/fb33edeffd47e6aa811bc89bd9d08e162c32246a
fb33edehttps://github.com/python/cpython/pull/99516/commits/fb33edeffd47e6aa811bc89bd9d08e162c32246a
https://github.com/ericsnowcurrently
Special-case the hash secret.https://github.com/python/cpython/pull/99516/commits/bd1a66df4baef02289691c90cfa80e85dd2bbddb
bd1a66dhttps://github.com/python/cpython/pull/99516/commits/bd1a66df4baef02289691c90cfa80e85dd2bbddb
https://github.com/ericsnowcurrently
Re-organize the ingored list.https://github.com/python/cpython/pull/99516/commits/1da0a3397471db5cfbc7a0e661b3294385aaa6c2
1da0a33https://github.com/python/cpython/pull/99516/commits/1da0a3397471db5cfbc7a0e661b3294385aaa6c2
https://github.com/ericsnowcurrently
Drop an old global from the ingored list.https://github.com/python/cpython/pull/99516/commits/03481e2355721f03cf68240b0bf62c8a7d376ff0
03481e2https://github.com/python/cpython/pull/99516/commits/03481e2355721f03cf68240b0bf62c8a7d376ff0
https://github.com/ericsnowcurrently
Only initialize bloom_linebreak once in the process.https://github.com/python/cpython/pull/99516/commits/e50ea0757b91ff7e1537599683b1324899fcc5dd
e50ea07https://github.com/python/cpython/pull/99516/commits/e50ea0757b91ff7e1537599683b1324899fcc5dd
https://github.com/ericsnowcurrently
Clarify an ignore list header.https://github.com/python/cpython/pull/99516/commits/a55e26a704ce0f5a243758d61b2664636a0e06b0
a55e26ahttps://github.com/python/cpython/pull/99516/commits/a55e26a704ce0f5a243758d61b2664636a0e06b0
https://github.com/ericsnowcurrently
Move memo_statistics to the ignored list.https://github.com/python/cpython/pull/99516/commits/fd3ec4006affbdf9db49e48bb099ef2a90eb6c86
fd3ec40https://github.com/python/cpython/pull/99516/commits/fd3ec4006affbdf9db49e48bb099ef2a90eb6c86
https://github.com/ericsnowcurrently
runtime.unicode_ids -> runtime.unicode_state.ids.https://github.com/python/cpython/pull/99516/commits/d04d9da11a13469743268b1c91ca0b533eb298cd
d04d9dahttps://github.com/python/cpython/pull/99516/commits/d04d9da11a13469743268b1c91ca0b533eb298cd
https://github.com/ericsnowcurrently
Move force_ascii to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/4e13ded3a2529581b0ccce14dfc1322ae5af1ae6
4e13dedhttps://github.com/python/cpython/pull/99516/commits/4e13ded3a2529581b0ccce14dfc1322ae5af1ae6
https://github.com/ericsnowcurrently
Move _Py_PackageContext to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/e8ad283237a22a36bb584e7ef16fce09881ff3c8
e8ad283https://github.com/python/cpython/pull/99516/commits/e8ad283237a22a36bb584e7ef16fce09881ff3c8
https://github.com/ericsnowcurrently
Move _Py_FatalErrorFormat():reentrant to the ignored list.https://github.com/python/cpython/pull/99516/commits/22135f757aaa1b8af674253ecdd6f86e0783269a
22135f7https://github.com/python/cpython/pull/99516/commits/22135f757aaa1b8af674253ecdd6f86e0783269a
https://github.com/ericsnowcurrently
Move PyFPE_counter to the ignored list.https://github.com/python/cpython/pull/99516/commits/426b34e80be917c6f802b8dd209c855f52a79807
426b34ehttps://github.com/python/cpython/pull/99516/commits/426b34e80be917c6f802b8dd209c855f52a79807
https://github.com/ericsnowcurrently
Move _Py_UnhandledKeyboardInterrupt to _PyRuntimeState.https://github.com/python/cpython/pull/99516/commits/ffdd34adca6a45f505fd86152c04b460d17b88eb
ffdd34ahttps://github.com/python/cpython/pull/99516/commits/ffdd34adca6a45f505fd86152c04b460d17b88eb
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Nov 15, 2022https://github.com/python/cpython/pull/99516#event-7817999150
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
brettcannonhttps://github.com/brettcannon
encukouhttps://github.com/encukou
ncoghlanhttps://github.com/ncoghlan
tiranhttps://github.com/tiran
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/86a49e06733b6ae9fef8de0c7e6db93ee87a2e32/.github/CODEOWNERS#L64
November 15, 2022 22:18https://github.com/python/cpython/pull/99516#event-7817999206
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 15, 2022https://github.com/python/cpython/pull/99516#event-7817999472
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 15, 2022 https://github.com/python/cpython/pull/99516#ref-issue-1199011689
[subinterpreters] Global C variables are a problem #81057 https://github.com/python/cpython/issues/81057
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
brettcannonhttps://github.com/brettcannon
encukouhttps://github.com/encukou
ncoghlanhttps://github.com/ncoghlan
tiranhttps://github.com/tiran
warsawhttps://github.com/warsaw
November 15, 2022 22:18https://github.com/python/cpython/pull/99516#event-7818000234
https://github.com/ericsnowcurrently
Fix pyhash_runtime_state on Windows.https://github.com/python/cpython/pull/99516/commits/248a69c3325930b189ecdf912d7ef20606b99bbb
248a69chttps://github.com/python/cpython/pull/99516/commits/248a69c3325930b189ecdf912d7ef20606b99bbb
https://github.com/ericsnowcurrently
Fix pyhash_runtime_state on Windows.https://github.com/python/cpython/pull/99516/commits/a4a55d1211e493d3aff03b1901dc91285b3286e8
a4a55d1https://github.com/python/cpython/pull/99516/commits/a4a55d1211e493d3aff03b1901dc91285b3286e8
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Nov 16, 2022https://github.com/python/cpython/pull/99516#event-7818588465
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 16, 2022https://github.com/python/cpython/pull/99516#issuecomment-1316056758
@ericsnowcurrentlyhttps://github.com/ericsnowcurrently
a4a55d1https://github.com/python/cpython/commit/a4a55d1211e493d3aff03b1901dc91285b3286e8
Please reload this pagehttps://github.com/python/cpython/pull/99516
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Nov 16, 2022https://github.com/python/cpython/pull/99516#event-7818588659
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
5f55067https://github.com/python/cpython/commit/5f55067e238c21de25f09ece9bb24ae8c42d02b4
Nov 16, 2022https://github.com/python/cpython/pull/99516#event-7825889067
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 16, 2022https://github.com/python/cpython/pull/99516#event-7825889521
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
November 16, 2022 16:37https://github.com/python/cpython/pull/99516#event-7825889666
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F99516
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/99516
https://github.com/ericsnowcurrently
https://github.com/bedevere-bot
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.