| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b4cc8c4c-bac3-c905-bcf9-00e94638c81c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DDA4:9CC2A:EB699C:146CA00:696A862B |
| html-safe-nonce | 6bd452f17989212061ec715594881f168fa234e2cb2fcc163568fd756bc99015 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREE0OjlDQzJBOkVCNjk5QzoxNDZDQTAwOjY5NkE4NjJCIiwidmlzaXRvcl9pZCI6IjEwNzk2MTA2NTY3OTc4MzQ2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f2d3e99f6dc66af1cb36d89f33782e284ca888ca2d121048f411cd3ecf7b6ce6 |
| hovercard-subject-tag | pull_request:1445012911 |
| 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/106974/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 fixes a crasher due to a race condition, triggered infrequently when two isolated (own GIL) subinterpreters simultaneously initialize their sys or builtins modules. The crash happened due the... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| 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 | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/106974/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F106974%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%2F106974%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/106974/files |
| Reload | https://github.com/python/cpython/pull/106974/files |
| Reload | https://github.com/python/cpython/pull/106974/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/106974/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/106974/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:fix-extensions-tstate-alt | https://github.com/ericsnowcurrently/cpython/tree/fix-extensions-tstate-alt |
|
Conversation
20
| https://github.com/python/cpython/pull/106974 |
|
Commits
14
| https://github.com/python/cpython/pull/106974/commits |
|
Checks
0
| https://github.com/python/cpython/pull/106974/checks |
|
Files changed
| https://github.com/python/cpython/pull/106974/files |
| Please reload this page | https://github.com/python/cpython/pull/106974/files |
|
gh-105699: Use a _Py_hashtable_t for the PyModuleDef Cache
| https://github.com/python/cpython/pull/106974/files#top |
|
Show all changes
14 commits
| https://github.com/python/cpython/pull/106974/files |
|
3397777
Add a comment.
ericsnowcurrently Jul 19, 2023
| https://github.com/python/cpython/pull/106974/commits/33977774c6f8229eb098417da1d0f21a61357924 |
|
670e632
Add a TODO.
ericsnowcurrently Jul 19, 2023
| https://github.com/python/cpython/pull/106974/commits/670e632496b32dc638117e3a5d42df877aae0182 |
|
485d130
Use a low-level hashtable instead of a dict.
ericsnowcurrently Jul 21, 2023
| https://github.com/python/cpython/pull/106974/commits/485d130637503a207b0440a4f600a42fffb32042 |
|
77d5e8f
Drop _PyThreadState_*Detached().
ericsnowcurrently Jul 19, 2023
| https://github.com/python/cpython/pull/106974/commits/77d5e8f298ae4dcfd5aa5e8cf7f6cd3f0254e8fc |
|
04a19c4
Set "byname" properly for the reload case.
ericsnowcurrently Jul 24, 2023
| https://github.com/python/cpython/pull/106974/commits/04a19c456b6b63aab9a1272d0ea08c66b6e46875 |
|
5fde127
Use a flat hashtable instead of a nested one.
ericsnowcurrently Jul 27, 2023
| https://github.com/python/cpython/pull/106974/commits/5fde127bbd6fe6d332f45f91fc655ebd6289cea4 |
|
818d828
Merge branch 'main' into fix-extensions-tstate-alt
ericsnowcurrently Jul 27, 2023
| https://github.com/python/cpython/pull/106974/commits/818d828ca7458fe2637f8000dc13c4d691366712 |
|
e83b0cc
Use the right allocator.
ericsnowcurrently Jul 27, 2023
| https://github.com/python/cpython/pull/106974/commits/e83b0cccc1429b92091f6576349b33e13b6ec5bd |
|
9e81cd5
Use PyUnicode_AsUTF8AndSize() (and fix the assert).
ericsnowcurrently Jul 28, 2023
| https://github.com/python/cpython/pull/106974/commits/9e81cd5bcf45c147c05de6503d4339c1dde2692e |
|
430716b
Raise MemoryError where appropriate.
ericsnowcurrently Jul 28, 2023
| https://github.com/python/cpython/pull/106974/commits/430716b1b27f5ead37fc6d765e68292d0f401cba |
|
647fbc2
Add a comment.
ericsnowcurrently Jul 28, 2023
| https://github.com/python/cpython/pull/106974/commits/647fbc2c81dbd09b00aa39d489ead78580fdcf00 |
|
bbe5eda
Use a constant for the cache separator character.
ericsnowcurrently Jul 28, 2023
| https://github.com/python/cpython/pull/106974/commits/bbe5eda9b7f833ac487f05591798295601bcd966 |
|
1d7cbd0
Decref when clearing the hashtable.
ericsnowcurrently Jul 28, 2023
| https://github.com/python/cpython/pull/106974/commits/1d7cbd00cc85c154567f4718fd965b981944a5b3 |
|
20c8b9d
Make the cached module defs immortal.
ericsnowcurrently Jul 28, 2023
| https://github.com/python/cpython/pull/106974/commits/20c8b9d9415c81a65bd292c2474b050e531e1dc9 |
|
Clear filters
| https://github.com/python/cpython/pull/106974/files |
| Please reload this page | https://github.com/python/cpython/pull/106974/files |
| Please reload this page | https://github.com/python/cpython/pull/106974/files |
|
pycore_import.h
| https://github.com/python/cpython/pull/106974/files#diff-f0d0635a621a67c4105f6b306ecabc7b6f8e1fe1518ae49baf006c26f71520b5 |
|
pycore_pystate.h
| https://github.com/python/cpython/pull/106974/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
pycore_runtime_init.h
| https://github.com/python/cpython/pull/106974/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
import.c
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
pystate.c
| https://github.com/python/cpython/pull/106974/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L260 |
| Include/internal/pycore_import.h | https://github.com/python/cpython/pull/106974/files#diff-f0d0635a621a67c4105f6b306ecabc7b6f8e1fe1518ae49baf006c26f71520b5 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/20c8b9d9415c81a65bd292c2474b050e531e1dc9/Include/internal/pycore_import.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106974/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106974/files#diff-f0d0635a621a67c4105f6b306ecabc7b6f8e1fe1518ae49baf006c26f71520b5 |
|
| https://github.com/python/cpython/pull/106974/files#diff-f0d0635a621a67c4105f6b306ecabc7b6f8e1fe1518ae49baf006c26f71520b5 |
|
| https://github.com/python/cpython/pull/106974/files#diff-f0d0635a621a67c4105f6b306ecabc7b6f8e1fe1518ae49baf006c26f71520b5 |
|
| https://github.com/python/cpython/pull/106974/files#diff-f0d0635a621a67c4105f6b306ecabc7b6f8e1fe1518ae49baf006c26f71520b5 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L311 |
| Include/internal/pycore_pystate.h | https://github.com/python/cpython/pull/106974/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/20c8b9d9415c81a65bd292c2474b050e531e1dc9/Include/internal/pycore_pystate.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106974/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106974/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
| https://github.com/python/cpython/pull/106974/files#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L312 |
| Include/internal/pycore_runtime_init.h | https://github.com/python/cpython/pull/106974/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/20c8b9d9415c81a65bd292c2474b050e531e1dc9/Include/internal/pycore_runtime_init.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106974/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106974/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/106974/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L261 |
| Python/import.c | https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/20c8b9d9415c81a65bd292c2474b050e531e1dc9/Python/import.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106974/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
| Please reload this page | https://github.com/python/cpython/pull/106974/files |
| Please reload this page | https://github.com/python/cpython/pull/106974/files |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
|
| https://github.com/python/cpython/pull/106974/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
| Please reload this page | https://github.com/python/cpython/pull/106974/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 |