René's URL Explorer Experiment


Title: gh-76785: Handle Legacy Interpreters Properly by ericsnowcurrently · Pull Request #117490 · python/cpython · GitHub

Open Graph Title: gh-76785: Handle Legacy Interpreters Properly by ericsnowcurrently · Pull Request #117490 · python/cpython

X Title: gh-76785: Handle Legacy Interpreters Properly by ericsnowcurrently · Pull Request #117490 · python/cpython

Description: This is similar to the situation with threading._DummyThread. The methods (incl. __del__()) of interpreters.Interpreter objects must be careful with interpreters not created by interpreters.create...

Open Graph Description: This is similar to the situation with threading._DummyThread. The methods (incl. __del__()) of interpreters.Interpreter objects must be careful with interpreters not created by interpreters.create...

X Description: This is similar to the situation with threading._DummyThread. The methods (incl. __del__()) of interpreters.Interpreter objects must be careful with interpreters not created by interpreters.create...

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

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:3ccb7297-9229-48e7-1a20-514f9b5a70e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA3CA:193CDB:A6D0F7:DB59C0:696AF524
html-safe-nonce5abcc29a1f61f94ea44dd06d52f7104935dcd7f995cbde39783e7474e6a02dcb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0NBOjE5M0NEQjpBNkQwRjc6REI1OUMwOjY5NkFGNTI0IiwidmlzaXRvcl9pZCI6IjY4MTk5NjYwODU2MTcwODc3ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5ad49fd2ff1e77476436f25d1313ea17c3ad2d8f0370488500d7e529182a0868
hovercard-subject-tagpull_request:1803503327
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/117490/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6a7ccfcf954ffb26c76f3f6636cd6d5a0a5d79b1e335ee1fdf9b23987c6ffb23/python/cpython/pull/117490
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a7ccfcf954ffb26c76f3f6636cd6d5a0a5d79b1e335ee1fdf9b23987c6ffb23/python/cpython/pull/117490
og:image:altThis is similar to the situation with threading._DummyThread. The methods (incl. __del__()) of interpreters.Interpreter objects must be careful with interpreters not created by interpreters.create...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/117490#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117490
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%2F117490
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/117490
Reloadhttps://github.com/python/cpython/pull/117490
Reloadhttps://github.com/python/cpython/pull/117490
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/117490
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/117490
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/117490#issue-comment-box
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:hide-legacy-subinterpretershttps://github.com/ericsnowcurrently/cpython/tree/hide-legacy-subinterpreters
gh-76785: Handle Legacy Interpreters Properly https://github.com/python/cpython/pull/117490#top
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:hide-legacy-subinterpretershttps://github.com/ericsnowcurrently/cpython/tree/hide-legacy-subinterpreters
Conversation 0 https://github.com/python/cpython/pull/117490
Commits 19 https://github.com/python/cpython/pull/117490/commits
Checks 0 https://github.com/python/cpython/pull/117490/checks
Files changed https://github.com/python/cpython/pull/117490/files
Please reload this pagehttps://github.com/python/cpython/pull/117490
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Apr 2, 2024https://github.com/python/cpython/pull/117490#issue-2221620336
Please reload this pagehttps://github.com/python/cpython/pull/117490
[subinterpreters] PEP 554 implementation: add interpreters module #76785https://github.com/python/cpython/issues/76785
Please reload this pagehttps://github.com/python/cpython/pull/117490
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Apr 2, 2024https://github.com/python/cpython/pull/117490#event-12333146764
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 2, 2024 https://github.com/python/cpython/pull/117490#ref-issue-1198986115
[subinterpreters] PEP 554 implementation: add interpreters module #76785 https://github.com/python/cpython/issues/76785
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
force-pushedhttps://github.com/python/cpython/compare/1e32031252f8b9fc2e61de65ec4ce8fbb36de7fb..dcf6e8cb530983bc42970dfc5ca3a9f4f5af4974
1e32031https://github.com/python/cpython/commit/1e32031252f8b9fc2e61de65ec4ce8fbb36de7fb
dcf6e8chttps://github.com/python/cpython/commit/dcf6e8cb530983bc42970dfc5ca3a9f4f5af4974
Compare https://github.com/python/cpython/compare/1e32031252f8b9fc2e61de65ec4ce8fbb36de7fb..dcf6e8cb530983bc42970dfc5ca3a9f4f5af4974
April 9, 2024 20:53https://github.com/python/cpython/pull/117490#event-12412806316
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
force-pushedhttps://github.com/python/cpython/compare/dcf6e8cb530983bc42970dfc5ca3a9f4f5af4974..7de833a526530a3f3bf93ae55113f1d0bbeba305
dcf6e8chttps://github.com/python/cpython/commit/dcf6e8cb530983bc42970dfc5ca3a9f4f5af4974
7de833ahttps://github.com/python/cpython/commit/7de833a526530a3f3bf93ae55113f1d0bbeba305
Compare https://github.com/python/cpython/compare/dcf6e8cb530983bc42970dfc5ca3a9f4f5af4974..7de833a526530a3f3bf93ae55113f1d0bbeba305
April 10, 2024 23:39https://github.com/python/cpython/pull/117490#event-12429371710
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
April 10, 2024 18:37https://github.com/python/cpython/pull/117490#commits-pushed-5b68f4d
https://github.com/ericsnowcurrently
Identify unmanaged interpreters.https://github.com/python/cpython/pull/117490/commits/5b68f4d9d7be36eec8e834d1889d1a7320d773fa
5b68f4dhttps://github.com/python/cpython/pull/117490/commits/5b68f4d9d7be36eec8e834d1889d1a7320d773fa
https://github.com/ericsnowcurrently
Implement using a hashtable.https://github.com/python/cpython/pull/117490/commits/1811e50dcbad10ba30bbd7b20233db8051919d4a
1811e50https://github.com/python/cpython/pull/117490/commits/1811e50dcbad10ba30bbd7b20233db8051919d4a
https://github.com/ericsnowcurrently
Call drop_owned() after Py_EndInterpreter(), not before.https://github.com/python/cpython/pull/117490/commits/05a39235771d62f656824d4c2a059993ffde9747
05a3923https://github.com/python/cpython/pull/117490/commits/05a39235771d62f656824d4c2a059993ffde9747
https://github.com/ericsnowcurrently
Use a linked list.https://github.com/python/cpython/pull/117490/commits/6f7c83d8f6ab9edbe5dd46f387b1089aac2d9235
6f7c83dhttps://github.com/python/cpython/pull/117490/commits/6f7c83d8f6ab9edbe5dd46f387b1089aac2d9235
https://github.com/ericsnowcurrently
Add restrictions.https://github.com/python/cpython/pull/117490/commits/3a60142d907850beda1d32f9a8c3b0befc9eb51c
3a60142https://github.com/python/cpython/pull/117490/commits/3a60142d907850beda1d32f9a8c3b0befc9eb51c
https://github.com/ericsnowcurrently
Hide unmanaged interpreters.https://github.com/python/cpython/pull/117490/commits/98fc876ba91f69667c89760693c4abc21f1d144e
98fc876https://github.com/python/cpython/pull/117490/commits/98fc876ba91f69667c89760693c4abc21f1d144e
https://github.com/ericsnowcurrently
Use Interpreter for unmanaged interpreters.https://github.com/python/cpython/pull/117490/commits/c2629b78c4e8f393721f68f008a119431efb55b3
c2629b7https://github.com/python/cpython/pull/117490/commits/c2629b78c4e8f393721f68f008a119431efb55b3
https://github.com/ericsnowcurrently
Fix other tests.https://github.com/python/cpython/pull/117490/commits/f1e2461cb84ffca9902f598129be73b460c32fde
f1e2461https://github.com/python/cpython/pull/117490/commits/f1e2461cb84ffca9902f598129be73b460c32fde
https://github.com/ericsnowcurrently
Default to require_owned=False.https://github.com/python/cpython/pull/117490/commits/55a1c3100ea2be8b8fbe53dbf3b3acab2c1faf92
55a1c31https://github.com/python/cpython/pull/117490/commits/55a1c3100ea2be8b8fbe53dbf3b3acab2c1faf92
https://github.com/ericsnowcurrently
Interpreter.owned -> Interpreter.whencehttps://github.com/python/cpython/pull/117490/commits/f73b6f329c042f4714149c4d93c3520d10d02478
f73b6f3https://github.com/python/cpython/pull/117490/commits/f73b6f329c042f4714149c4d93c3520d10d02478
https://github.com/ericsnowcurrently
require_owned -> restricthttps://github.com/python/cpython/pull/117490/commits/7e6432c3ea4e3bdc617b7edbdc740030f8d49d95
7e6432chttps://github.com/python/cpython/pull/117490/commits/7e6432c3ea4e3bdc617b7edbdc740030f8d49d95
https://github.com/ericsnowcurrently
Add PyInterpreterState._whence.https://github.com/python/cpython/pull/117490/commits/19b68ebd15f9930fd4c579ae097bbb7819550b25
19b68ebhttps://github.com/python/cpython/pull/117490/commits/19b68ebd15f9930fd4c579ae097bbb7819550b25
https://github.com/ericsnowcurrently
Drop the module's global state.https://github.com/python/cpython/pull/117490/commits/d713ecff3ec4553c51160542e83d672a9ccd38c7
d713ecfhttps://github.com/python/cpython/pull/117490/commits/d713ecff3ec4553c51160542e83d672a9ccd38c7
https://github.com/ericsnowcurrently
Drop a duplicate module func def.https://github.com/python/cpython/pull/117490/commits/fe362d18d4f7ceda7d9bd71e3dfb23392081d530
fe362d1https://github.com/python/cpython/pull/117490/commits/fe362d18d4f7ceda7d9bd71e3dfb23392081d530
https://github.com/ericsnowcurrently
Require the interpreter to be ready for most operations.https://github.com/python/cpython/pull/117490/commits/cd7d5ee63a1b11214926eaf3a049bbdb248ff430
cd7d5eehttps://github.com/python/cpython/pull/117490/commits/cd7d5ee63a1b11214926eaf3a049bbdb248ff430
https://github.com/ericsnowcurrently
Do not expose not-ready interpreters in the high-level module.https://github.com/python/cpython/pull/117490/commits/4f92794abde4324bdcbb2f30cf02384ae610156e
4f92794https://github.com/python/cpython/pull/117490/commits/4f92794abde4324bdcbb2f30cf02384ae610156e
https://github.com/ericsnowcurrently
Fix destroying a not-ready interpreter.https://github.com/python/cpython/pull/117490/commits/e38f141d5653bafc9fae65a170d81400a3a1f61e
e38f141https://github.com/python/cpython/pull/117490/commits/e38f141d5653bafc9fae65a170d81400a3a1f61e
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
force-pushedhttps://github.com/python/cpython/compare/7de833a526530a3f3bf93ae55113f1d0bbeba305..e38f141d5653bafc9fae65a170d81400a3a1f61e
7de833ahttps://github.com/python/cpython/commit/7de833a526530a3f3bf93ae55113f1d0bbeba305
e38f141https://github.com/python/cpython/commit/e38f141d5653bafc9fae65a170d81400a3a1f61e
Compare https://github.com/python/cpython/compare/7de833a526530a3f3bf93ae55113f1d0bbeba305..e38f141d5653bafc9fae65a170d81400a3a1f61e
April 11, 2024 00:40https://github.com/python/cpython/pull/117490#event-12429777647
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
April 11, 2024 20:40https://github.com/python/cpython/pull/117490#event-12441472510
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 11, 2024https://github.com/python/cpython/pull/117490#event-12441473005
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
April 11, 2024 16:54https://github.com/python/cpython/pull/117490#commits-pushed-2274d6e
https://github.com/ericsnowcurrently
Hide a variable on non-debug builds.https://github.com/python/cpython/pull/117490/commits/2274d6ef7956de5b71381d000365f27c58f01fb8
2274d6ehttps://github.com/python/cpython/pull/117490/commits/2274d6ef7956de5b71381d000365f27c58f01fb8
https://github.com/ericsnowcurrently
Merge branch 'main' into hide-legacy-subinterpretershttps://github.com/python/cpython/pull/117490/commits/c796cfae708493a671fe935667cbaa857bc5e196
c796cfahttps://github.com/python/cpython/pull/117490/commits/c796cfae708493a671fe935667cbaa857bc5e196
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
April 11, 2024 22:59https://github.com/python/cpython/pull/117490#event-12442554194
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
fd259fdhttps://github.com/python/cpython/commit/fd259fdabe95329768eb3e90039c77888c130a4c
Apr 11, 2024https://github.com/python/cpython/pull/117490#event-12442675330
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 11, 2024https://github.com/python/cpython/pull/117490#event-12442675593
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
April 11, 2024 23:26https://github.com/python/cpython/pull/117490#event-12442688813
diegorussohttps://github.com/diegorusso
Apr 17, 2024 https://github.com/python/cpython/pull/117490#ref-commit-f787e35
https://github.com/ericsnowcurrently
https://github.com/diegorusso
pythongh-76785https://github.com/python/cpython/issues/76785
: Handle Legacy Interpreters Properly (https://github.com/diegorusso/cpython/commit/f787e357f3ed9852dc653215bf3669f6c2f958ae
pythongh-117490https://github.com/python/cpython/pull/117490
)https://github.com/diegorusso/cpython/commit/f787e357f3ed9852dc653215bf3669f6c2f958ae
f787e35https://github.com/diegorusso/cpython/commit/f787e357f3ed9852dc653215bf3669f6c2f958ae
GH-137630: Convert _interpreters to use Argument Clinic #137631 https://github.com/python/cpython/pull/137631
_interpreters annotations are outdated python/typeshed#14588 https://github.com/python/typeshed/issues/14588
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%2F117490
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/117490
https://github.com/ericsnowcurrently
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.