| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7f572253-0aae-ca6a-c1d5-09626cab0481 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EDD4:32982F:DC91FC:12A9EDB:6A51FB0C |
| html-safe-nonce | d41dbc2bb0b0d9645b1e0e87f0383988b0bc25ba4ed4eb9da1e529086ef5ea4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREQ0OjMyOTgyRjpEQzkxRkM6MTJBOUVEQjo2QTUxRkIwQyIsInZpc2l0b3JfaWQiOiIzNDAyNTQ0MzY4NjU3MjM0NzAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7aa09bc1d44586d3b4d7537d23b5b953b608251fa422547d672a7efb46609773 |
| hovercard-subject-tag | pull_request:261712290 |
| 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/12359/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 basically an un-revert of #12003 (reverted in #12159).
https://bugs.python.org/issue36097 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/12359/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F12359%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2F12359%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/12359/files |
| Reload | https://github.com/python/cpython/pull/12359/files |
| Reload | https://github.com/python/cpython/pull/12359/files |
| Please reload this page | https://github.com/python/cpython/pull/12359/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/12359/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.7k
| 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.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
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 and quality
| 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:master | https://github.com/python/cpython/tree/master |
| ericsnowcurrently:module-uses-public-api | https://github.com/ericsnowcurrently/cpython/tree/module-uses-public-api |
|
Conversation
0
| https://github.com/python/cpython/pull/12359 |
|
Commits
15
| https://github.com/python/cpython/pull/12359/commits |
|
Checks
0
| https://github.com/python/cpython/pull/12359/checks |
|
Files changed
| https://github.com/python/cpython/pull/12359/files |
| Please reload this page | https://github.com/python/cpython/pull/12359/files |
|
bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary).
| https://github.com/python/cpython/pull/12359/files#top |
|
Show all changes
15 commits
| https://github.com/python/cpython/pull/12359/files |
|
c0582a4
Add _PyInterpreterState_GetMainModule().
ericsnowcurrently Feb 18, 2019
| https://github.com/python/cpython/pull/12359/commits/c0582a47e7085b52d921d9b1fa1767b4c94e2e5a |
|
0574384
Use PyInterpreterState_GetID().
ericsnowcurrently Feb 18, 2019
| https://github.com/python/cpython/pull/12359/commits/057438456cef8417feb87747822147940ce55a96 |
|
89e01f2
Fix memory leaks.
ericsnowcurrently Feb 18, 2019
| https://github.com/python/cpython/pull/12359/commits/89e01f28abcb6c2b20560cbd388633f892f851b9 |
|
e962a13
Move _PyCrossInterpreterData (and functions) to the public API.
ericsnowcurrently Feb 18, 2019
| https://github.com/python/cpython/pull/12359/commits/e962a139764686bcfa175960b6b0a2d365a03003 |
|
6e912c0
Add _PyInterpreterID_Type and helpers to public API.
ericsnowcurrently Feb 19, 2019
| https://github.com/python/cpython/pull/12359/commits/6e912c0a74714bc56991a971f021c1b0cca4d6f7 |
|
1f6905b
Initialize the ID refcount in _PyInterpreterState_GetIDObject().
ericsnowcurrently Feb 19, 2019
| https://github.com/python/cpython/pull/12359/commits/1f6905b189fba5907e90ee70b741447d768a65d9 |
|
7715145
Fix InterpreterID intialization.
ericsnowcurrently Feb 23, 2019
| https://github.com/python/cpython/pull/12359/commits/771514531767d0a9739e2e3c3f74022ee9aca8c3 |
|
60a0579
Fix the makefile.
ericsnowcurrently Mar 1, 2019
| https://github.com/python/cpython/pull/12359/commits/60a0579cb65ce46245529c32e37866a88bae6266 |
|
5e3ee4f
Make a function static.
ericsnowcurrently Feb 26, 2019
| https://github.com/python/cpython/pull/12359/commits/5e3ee4fd4608add9150b6a6e8a47acaab73cd0f0 |
|
a7b3b65
Do not call PyType_Ready() twice.
ericsnowcurrently Mar 1, 2019
| https://github.com/python/cpython/pull/12359/commits/a7b3b65c63c91fa4db37585ce88255569368770c |
|
3ea575c
Fix the Windows build.
ericsnowcurrently Feb 24, 2019
| https://github.com/python/cpython/pull/12359/commits/3ea575cbdaf071e7cbb41f231a696dd0641e10d7 |
|
67a9421
_PyCrossInterpreterData_Register_Class -> _PyCrossInterpreterData_Reg…
ericsnowcurrently Feb 26, 2019
| https://github.com/python/cpython/pull/12359/commits/67a94217cb2b8afc0abfe35409f51bec484a151f |
|
600bae5
Clarify a comment.
ericsnowcurrently Feb 26, 2019
| https://github.com/python/cpython/pull/12359/commits/600bae519b453423f56a0eb40f0c450c6772f05a |
|
ecf5664
Add the C++ guard.
ericsnowcurrently Feb 26, 2019
| https://github.com/python/cpython/pull/12359/commits/ecf5664690c097deba7e4c93958279dfbbe4a0d3 |
|
4c232f8
Only destroy interpreters (by ID refcount) when created by the module.
ericsnowcurrently Mar 1, 2019
| https://github.com/python/cpython/pull/12359/commits/4c232f8c4e6c9f6621e84960e3559544d35b54de |
|
Clear filters
| https://github.com/python/cpython/pull/12359/files |
| Please reload this page | https://github.com/python/cpython/pull/12359/files |
| Please reload this page | https://github.com/python/cpython/pull/12359/files |
|
interpreteridobject.h
| https://github.com/python/cpython/pull/12359/files#diff-4d1998a443e97ae05d9d937d8ab66ec546d19f6137287dddf9931b79e1cce9dd |
|
pystate.h
| https://github.com/python/cpython/pull/12359/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
|
pycore_pystate.h
| https://github.com/python/cpython/pull/12359/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
interpreteridobject.h
| https://github.com/python/cpython/pull/12359/files#diff-4d2cde4791905bfc8f598c8423b42de3333c0abc4b61a245485bffeefbcf5afc |
|
Makefile.pre.in
| https://github.com/python/cpython/pull/12359/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
_xxsubinterpretersmodule.c
| https://github.com/python/cpython/pull/12359/files#diff-f29800af0b7052514f5cc3d1a5858d704a8f0dee4c88788b741c00a0ff39f8d0 |
|
interpreteridobject.c
| https://github.com/python/cpython/pull/12359/files#diff-ee6b6a65af75ea710f434bd7c509df0e6a0dd811695f34deceb0c798a22c47d8 |
|
object.c
| https://github.com/python/cpython/pull/12359/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
|
pythoncore.vcxproj
| https://github.com/python/cpython/pull/12359/files#diff-4295039788386c2986b811f2a6b59cf088be59822b24b4f1243c9e9b184f65fb |
|
pythoncore.vcxproj.filters
| https://github.com/python/cpython/pull/12359/files#diff-9e715828befc9c50c8b483b06d4923cda0db44f57d0c20e6a6d428ba60bfa0c5 |
|
pystate.c
| https://github.com/python/cpython/pull/12359/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141 |
|
setup.py
| https://github.com/python/cpython/pull/12359/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7 |
| Include/cpython/interpreteridobject.h | https://github.com/python/cpython/pull/12359/files#diff-4d1998a443e97ae05d9d937d8ab66ec546d19f6137287dddf9931b79e1cce9dd |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/4c232f8c4e6c9f6621e84960e3559544d35b54de/Include/cpython/interpreteridobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12359/{{ revealButtonHref }} |
| Include/cpython/pystate.h | https://github.com/python/cpython/pull/12359/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/4c232f8c4e6c9f6621e84960e3559544d35b54de/Include/cpython/pystate.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12359/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/12359/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
|
| https://github.com/python/cpython/pull/12359/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
|
| https://github.com/python/cpython/pull/12359/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
| Include/internal/pycore_pystate.h | https://github.com/python/cpython/pull/12359/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/4c232f8c4e6c9f6621e84960e3559544d35b54de/Include/internal/pycore_pystate.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12359/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/12359/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
| https://github.com/python/cpython/pull/12359/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
| https://github.com/python/cpython/pull/12359/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
| https://github.com/python/cpython/pull/12359/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
| Include/interpreteridobject.h | https://github.com/python/cpython/pull/12359/files#diff-4d2cde4791905bfc8f598c8423b42de3333c0abc4b61a245485bffeefbcf5afc |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/4c232f8c4e6c9f6621e84960e3559544d35b54de/Include/interpreteridobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12359/{{ revealButtonHref }} |
| Makefile.pre.in | https://github.com/python/cpython/pull/12359/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/4c232f8c4e6c9f6621e84960e3559544d35b54de/Makefile.pre.in |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12359/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/12359/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12359/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12359/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12359/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12359/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12359/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
| Please reload this page | https://github.com/python/cpython/pull/12359/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 |