| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ec8252e4-51c5-2f3b-5405-be9ceb6d973b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EACE:E8423:296CDB6:36AA607:696B2880 |
| html-safe-nonce | 5fbcd4ad42e95e3ffe158aa5888f835f019a83e01ae6dede6af7a8886e88aa4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUNFOkU4NDIzOjI5NkNEQjY6MzZBQTYwNzo2OTZCMjg4MCIsInZpc2l0b3JfaWQiOiIxNDI5ODk4MTY2MjY4NTM2OTYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a9c2904495e7283dcfcdc37406109ec0ea0b9cf8e265280302b48bf7d94f7ed1 |
| hovercard-subject-tag | pull_request:1803503327 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/117490/files |
| twitter:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/117490/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117490%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%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 |
| Reload | https://github.com/python/cpython/pull/117490/files |
| Reload | https://github.com/python/cpython/pull/117490/files |
| Reload | https://github.com/python/cpython/pull/117490/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/117490/files |
|
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 page | https://github.com/python/cpython/pull/117490/files |
|
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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| python:main | https://github.com/python/cpython/tree/main |
| ericsnowcurrently:hide-legacy-subinterpreters | https://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 page | https://github.com/python/cpython/pull/117490/files |
|
gh-76785: Handle Legacy Interpreters Properly
| https://github.com/python/cpython/pull/117490/files#top |
|
Show all changes
19 commits
| https://github.com/python/cpython/pull/117490/files |
|
5b68f4d
Identify unmanaged interpreters.
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117490/commits/5b68f4d9d7be36eec8e834d1889d1a7320d773fa |
|
1811e50
Implement using a hashtable.
ericsnowcurrently Mar 25, 2024
| https://github.com/python/cpython/pull/117490/commits/1811e50dcbad10ba30bbd7b20233db8051919d4a |
|
05a3923
Call drop_owned() after Py_EndInterpreter(), not before.
ericsnowcurrently Apr 2, 2024
| https://github.com/python/cpython/pull/117490/commits/05a39235771d62f656824d4c2a059993ffde9747 |
|
6f7c83d
Use a linked list.
ericsnowcurrently Mar 25, 2024
| https://github.com/python/cpython/pull/117490/commits/6f7c83d8f6ab9edbe5dd46f387b1089aac2d9235 |
|
3a60142
Add restrictions.
ericsnowcurrently Mar 25, 2024
| https://github.com/python/cpython/pull/117490/commits/3a60142d907850beda1d32f9a8c3b0befc9eb51c |
|
98fc876
Hide unmanaged interpreters.
ericsnowcurrently Mar 25, 2024
| https://github.com/python/cpython/pull/117490/commits/98fc876ba91f69667c89760693c4abc21f1d144e |
|
c2629b7
Use Interpreter for unmanaged interpreters.
ericsnowcurrently Mar 25, 2024
| https://github.com/python/cpython/pull/117490/commits/c2629b78c4e8f393721f68f008a119431efb55b3 |
|
f1e2461
Fix other tests.
ericsnowcurrently Apr 9, 2024
| https://github.com/python/cpython/pull/117490/commits/f1e2461cb84ffca9902f598129be73b460c32fde |
|
55a1c31
Default to require_owned=False.
ericsnowcurrently Apr 9, 2024
| https://github.com/python/cpython/pull/117490/commits/55a1c3100ea2be8b8fbe53dbf3b3acab2c1faf92 |
|
f73b6f3
Interpreter.owned -> Interpreter.whence
ericsnowcurrently Apr 10, 2024
| https://github.com/python/cpython/pull/117490/commits/f73b6f329c042f4714149c4d93c3520d10d02478 |
|
7e6432c
require_owned -> restrict
ericsnowcurrently Apr 10, 2024
| https://github.com/python/cpython/pull/117490/commits/7e6432c3ea4e3bdc617b7edbdc740030f8d49d95 |
|
19b68eb
Add PyInterpreterState._whence.
ericsnowcurrently Apr 10, 2024
| https://github.com/python/cpython/pull/117490/commits/19b68ebd15f9930fd4c579ae097bbb7819550b25 |
|
d713ecf
Drop the module's global state.
ericsnowcurrently Apr 10, 2024
| https://github.com/python/cpython/pull/117490/commits/d713ecff3ec4553c51160542e83d672a9ccd38c7 |
|
fe362d1
Drop a duplicate module func def.
ericsnowcurrently Apr 10, 2024
| https://github.com/python/cpython/pull/117490/commits/fe362d18d4f7ceda7d9bd71e3dfb23392081d530 |
|
cd7d5ee
Require the interpreter to be ready for most operations.
ericsnowcurrently Apr 10, 2024
| https://github.com/python/cpython/pull/117490/commits/cd7d5ee63a1b11214926eaf3a049bbdb248ff430 |
|
4f92794
Do not expose not-ready interpreters in the high-level module.
ericsnowcurrently Apr 10, 2024
| https://github.com/python/cpython/pull/117490/commits/4f92794abde4324bdcbb2f30cf02384ae610156e |
|
e38f141
Fix destroying a not-ready interpreter.
ericsnowcurrently Apr 10, 2024
| https://github.com/python/cpython/pull/117490/commits/e38f141d5653bafc9fae65a170d81400a3a1f61e |
|
2274d6e
Hide a variable on non-debug builds.
ericsnowcurrently Apr 11, 2024
| https://github.com/python/cpython/pull/117490/commits/2274d6ef7956de5b71381d000365f27c58f01fb8 |
|
c796cfa
Merge branch 'main' into hide-legacy-subinterpreters
ericsnowcurrently Apr 11, 2024
| https://github.com/python/cpython/pull/117490/commits/c796cfae708493a671fe935667cbaa857bc5e196 |
|
Clear filters
| https://github.com/python/cpython/pull/117490/files |
| Please reload this page | https://github.com/python/cpython/pull/117490/files |
| Please reload this page | https://github.com/python/cpython/pull/117490/files |
|
pycore_crossinterp.h
| https://github.com/python/cpython/pull/117490/files#diff-bd777cc84e5161f6ac0876c7d6627dbcd366e928760e905f761f153240074e2f |
|
pycore_interp.h
| https://github.com/python/cpython/pull/117490/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
|
__init__.py
| https://github.com/python/cpython/pull/117490/files#diff-d3fef8a3cf6ac71c9803bc02034a6644296cea6d9ec25bbfbf9be8f57954a25c |
|
test_api.py
| https://github.com/python/cpython/pull/117490/files#diff-235125e49dffbab69561d5c71a0ad9e3eb1eda2e8dba6ab2fb2a6bbbb9cae76c |
|
utils.py
| https://github.com/python/cpython/pull/117490/files#diff-c9747ab82a0ec51d03e9f5b69adfc81323028e9fc166259f06593fd8b5879bca |
|
_testinternalcapi.c
| https://github.com/python/cpython/pull/117490/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
_xxsubinterpretersmodule.c
| https://github.com/python/cpython/pull/117490/files#diff-f29800af0b7052514f5cc3d1a5858d704a8f0dee4c88788b741c00a0ff39f8d0 |
|
crossinterp.c
| https://github.com/python/cpython/pull/117490/files#diff-88c171bf6a3ab394012cb7af2d9929543d379573ff46279de7ad38d4e7a12c54 |
|
pystate.c
| https://github.com/python/cpython/pull/117490/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L331 |
| Include/internal/pycore_crossinterp.h | https://github.com/python/cpython/pull/117490/files#diff-bd777cc84e5161f6ac0876c7d6627dbcd366e928760e905f761f153240074e2f |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/c796cfae708493a671fe935667cbaa857bc5e196/Include/internal/pycore_crossinterp.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/117490/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/117490/files#diff-bd777cc84e5161f6ac0876c7d6627dbcd366e928760e905f761f153240074e2f |
|
| https://github.com/python/cpython/pull/117490/files#diff-bd777cc84e5161f6ac0876c7d6627dbcd366e928760e905f761f153240074e2f |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L317 |
| Include/internal/pycore_interp.h | https://github.com/python/cpython/pull/117490/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/c796cfae708493a671fe935667cbaa857bc5e196/Include/internal/pycore_interp.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/117490/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/117490/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
|
| https://github.com/python/cpython/pull/117490/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
|
| https://github.com/python/cpython/pull/117490/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
|
| https://github.com/python/cpython/pull/117490/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
| Lib/test/support/interpreters/__init__.py | https://github.com/python/cpython/pull/117490/files#diff-d3fef8a3cf6ac71c9803bc02034a6644296cea6d9ec25bbfbf9be8f57954a25c |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/c796cfae708493a671fe935667cbaa857bc5e196/Lib/test/support/interpreters/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/117490/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/117490/files#diff-d3fef8a3cf6ac71c9803bc02034a6644296cea6d9ec25bbfbf9be8f57954a25c |
|
| https://github.com/python/cpython/pull/117490/files#diff-d3fef8a3cf6ac71c9803bc02034a6644296cea6d9ec25bbfbf9be8f57954a25c |
|
| https://github.com/python/cpython/pull/117490/files#diff-d3fef8a3cf6ac71c9803bc02034a6644296cea6d9ec25bbfbf9be8f57954a25c |
|
| https://github.com/python/cpython/pull/117490/files#diff-d3fef8a3cf6ac71c9803bc02034a6644296cea6d9ec25bbfbf9be8f57954a25c |
|
| https://github.com/python/cpython/pull/117490/files#diff-d3fef8a3cf6ac71c9803bc02034a6644296cea6d9ec25bbfbf9be8f57954a25c |
| Please reload this page | https://github.com/python/cpython/pull/117490/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |