| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e5c972a1-a92b-0bad-346c-a9d1d741c2b9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C12E:3F60C6:9B2A416:DB1CDAB:6A512595 |
| html-safe-nonce | 510cafcb841b3692b2c7a7d5f740eebe83a301c26ec362538ae8f059cf04661f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTJFOjNGNjBDNjo5QjJBNDE2OkRCMUNEQUI6NkE1MTI1OTUiLCJ2aXNpdG9yX2lkIjoiODI5OTc1NTgzNTc4MjkzMTg2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aba85e661d66e76f1a46208f0fbcbf81d4d1b1c48422a64be915b560cfc11fd7 |
| hovercard-subject-tag | pull_request:255648605 |
| 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/12003/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 | https://bugs.python.org/issue36097 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/12003/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F12003%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%2F12003%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/12003/files |
| Reload | https://github.com/python/cpython/pull/12003/files |
| Reload | https://github.com/python/cpython/pull/12003/files |
| Please reload this page | https://github.com/python/cpython/pull/12003/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/12003/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
9
| https://github.com/python/cpython/pull/12003 |
|
Commits
15
| https://github.com/python/cpython/pull/12003/commits |
|
Checks
0
| https://github.com/python/cpython/pull/12003/checks |
|
Files changed
| https://github.com/python/cpython/pull/12003/files |
| Please reload this page | https://github.com/python/cpython/pull/12003/files |
|
bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary).
| https://github.com/python/cpython/pull/12003/files#top |
|
Show all changes
15 commits
| https://github.com/python/cpython/pull/12003/files |
|
247de37
Add _PyInterpreterState_GetMainModule().
ericsnowcurrently Feb 18, 2019
| https://github.com/python/cpython/pull/12003/commits/247de37af954aa5a383cbf9273b3131feacfe0b5 |
|
b498efa
Use PyInterpreterState_GetID().
ericsnowcurrently Feb 18, 2019
| https://github.com/python/cpython/pull/12003/commits/b498efa1fe5500bb99451ab6b6b0eb8cb4cdcc31 |
|
3732dde
Fix memory leaks.
ericsnowcurrently Feb 18, 2019
| https://github.com/python/cpython/pull/12003/commits/3732ddeef890a753d12b9a636f5da3848a08670c |
|
165e96c
Move _PyCrossInterpreterData (and functions) to the public API.
ericsnowcurrently Feb 18, 2019
| https://github.com/python/cpython/pull/12003/commits/165e96cbd33c58d362f626a9e08a1ccb7926d423 |
|
892ea20
Add _PyInterpreterID_Type and helpers to public API.
ericsnowcurrently Feb 19, 2019
| https://github.com/python/cpython/pull/12003/commits/892ea20bcdc19786151ff874010389e7263519b3 |
|
b400800
Initialize the ID refcount in _PyInterpreterState_GetIDObject().
ericsnowcurrently Feb 19, 2019
| https://github.com/python/cpython/pull/12003/commits/b40080096ffaa76249091ae4c209b9d5ccb5c604 |
|
582e520
Fix InterpreterID intialization.
ericsnowcurrently Feb 23, 2019
| https://github.com/python/cpython/pull/12003/commits/582e52043f89393b6e11e99bab7bd4a86adf4ec3 |
|
586d2bf
Fix the makefile.
ericsnowcurrently Mar 1, 2019
| https://github.com/python/cpython/pull/12003/commits/586d2bfe339d43a63c1a93cefac3a1015dd6c3b4 |
|
405f024
Make a function static.
ericsnowcurrently Feb 26, 2019
| https://github.com/python/cpython/pull/12003/commits/405f0242b7a5d62ce2f2ce699f60767225fd5493 |
|
1ab3501
Do not call PyType_Ready() twice.
ericsnowcurrently Mar 1, 2019
| https://github.com/python/cpython/pull/12003/commits/1ab3501a29d3f6a15cfeb97d11c454438d851b83 |
|
ba9b368
Fix the Windows build.
ericsnowcurrently Feb 24, 2019
| https://github.com/python/cpython/pull/12003/commits/ba9b3686efd1c872b5dbbccd5924945b9eab0ee8 |
|
5ad779d
_PyCrossInterpreterData_Register_Class -> _PyCrossInterpreterData_Reg…
ericsnowcurrently Feb 26, 2019
| https://github.com/python/cpython/pull/12003/commits/5ad779d3486e4908a4820705a74dcb5f1b466081 |
|
c7aaefd
Clarify a comment.
ericsnowcurrently Feb 26, 2019
| https://github.com/python/cpython/pull/12003/commits/c7aaefd41c7eb25d6d9744a8903510297354899c |
|
b0b4ddb
Add the C++ guard.
ericsnowcurrently Feb 26, 2019
| https://github.com/python/cpython/pull/12003/commits/b0b4ddb9d0b34d4cd43b7c7dbee5fb9967242fc7 |
|
16c0b7b
Only destroy interpreters (by ID refcount) when created by the module.
ericsnowcurrently Mar 1, 2019
| https://github.com/python/cpython/pull/12003/commits/16c0b7b97d04d026fb86faa5b4ac0775b2b5f18b |
|
Clear filters
| https://github.com/python/cpython/pull/12003/files |
| Please reload this page | https://github.com/python/cpython/pull/12003/files |
| Please reload this page | https://github.com/python/cpython/pull/12003/files |
|
interpreteridobject.h
| https://github.com/python/cpython/pull/12003/files#diff-4d1998a443e97ae05d9d937d8ab66ec546d19f6137287dddf9931b79e1cce9dd |
|
pystate.h
| https://github.com/python/cpython/pull/12003/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
|
pycore_pystate.h
| https://github.com/python/cpython/pull/12003/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
interpreteridobject.h
| https://github.com/python/cpython/pull/12003/files#diff-4d2cde4791905bfc8f598c8423b42de3333c0abc4b61a245485bffeefbcf5afc |
|
Makefile.pre.in
| https://github.com/python/cpython/pull/12003/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
_xxsubinterpretersmodule.c
| https://github.com/python/cpython/pull/12003/files#diff-f29800af0b7052514f5cc3d1a5858d704a8f0dee4c88788b741c00a0ff39f8d0 |
|
interpreteridobject.c
| https://github.com/python/cpython/pull/12003/files#diff-ee6b6a65af75ea710f434bd7c509df0e6a0dd811695f34deceb0c798a22c47d8 |
|
object.c
| https://github.com/python/cpython/pull/12003/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
|
pythoncore.vcxproj
| https://github.com/python/cpython/pull/12003/files#diff-4295039788386c2986b811f2a6b59cf088be59822b24b4f1243c9e9b184f65fb |
|
pythoncore.vcxproj.filters
| https://github.com/python/cpython/pull/12003/files#diff-9e715828befc9c50c8b483b06d4923cda0db44f57d0c20e6a6d428ba60bfa0c5 |
|
pystate.c
| https://github.com/python/cpython/pull/12003/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141 |
|
setup.py
| https://github.com/python/cpython/pull/12003/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7 |
| Include/cpython/interpreteridobject.h | https://github.com/python/cpython/pull/12003/files#diff-4d1998a443e97ae05d9d937d8ab66ec546d19f6137287dddf9931b79e1cce9dd |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/16c0b7b97d04d026fb86faa5b4ac0775b2b5f18b/Include/cpython/interpreteridobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12003/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/12003/files |
| Include/cpython/pystate.h | https://github.com/python/cpython/pull/12003/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/16c0b7b97d04d026fb86faa5b4ac0775b2b5f18b/Include/cpython/pystate.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12003/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/12003/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
|
| https://github.com/python/cpython/pull/12003/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
|
| https://github.com/python/cpython/pull/12003/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f |
| Include/internal/pycore_pystate.h | https://github.com/python/cpython/pull/12003/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/16c0b7b97d04d026fb86faa5b4ac0775b2b5f18b/Include/internal/pycore_pystate.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12003/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/12003/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
| https://github.com/python/cpython/pull/12003/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
| https://github.com/python/cpython/pull/12003/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
| https://github.com/python/cpython/pull/12003/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
| Include/interpreteridobject.h | https://github.com/python/cpython/pull/12003/files#diff-4d2cde4791905bfc8f598c8423b42de3333c0abc4b61a245485bffeefbcf5afc |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/16c0b7b97d04d026fb86faa5b4ac0775b2b5f18b/Include/interpreteridobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12003/{{ revealButtonHref }} |
| Makefile.pre.in | https://github.com/python/cpython/pull/12003/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/16c0b7b97d04d026fb86faa5b4ac0775b2b5f18b/Makefile.pre.in |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/12003/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/12003/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12003/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12003/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12003/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12003/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/12003/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
| Please reload this page | https://github.com/python/cpython/pull/12003/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 |