| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:45c66b76-fe04-f644-23a5-5a893818e182 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BCEC:247E0C:1C4CC4B:26DE5A2:696AB8A6 |
| html-safe-nonce | f6f05df69cd5b5079fbf404f62b21c147a02f778b91cf45f8e1b2feeef3d0eed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0VDOjI0N0UwQzoxQzRDQzRCOjI2REU1QTI6Njk2QUI4QTYiLCJ2aXNpdG9yX2lkIjoiMzk2NjE0NDc3NjY3ODQxNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5a06c8703d9a01fa4e76b346ac9d6ad6be2110599293a1c944b9a1eebfa8300a |
| hovercard-subject-tag | pull_request:853927681 |
| 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/31366/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/issue46765 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| 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 | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/31366/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31366%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%2F31366%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/31366/files |
| Reload | https://github.com/python/cpython/pull/31366/files |
| Reload | https://github.com/python/cpython/pull/31366/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/31366/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/31366/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:global-objects-use-pyid | https://github.com/ericsnowcurrently/cpython/tree/global-objects-use-pyid |
|
Conversation
14
| https://github.com/python/cpython/pull/31366 |
|
Commits
19
| https://github.com/python/cpython/pull/31366/commits |
|
Checks
0
| https://github.com/python/cpython/pull/31366/checks |
|
Files changed
| https://github.com/python/cpython/pull/31366/files |
| Please reload this page | https://github.com/python/cpython/pull/31366/files |
|
bpo-46765: Replace Locally Cached Strings with Statically Initialized Objects
| https://github.com/python/cpython/pull/31366/files#top |
|
Show all changes
19 commits
| https://github.com/python/cpython/pull/31366/files |
|
fdf87ee
Use _Py_ID() in boolobject.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/fdf87ee244f2d8be6e019d2f704381ad096510a8 |
|
2c2f917
Use _Py_ID() in classobject.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/2c2f9172de61e926f9c253aae53479965b750bcd |
|
5f2746b
Use _Py_ID() in codeobject.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/5f2746b3993166efa2b07065bded93dcb21931d1 |
|
1df92a0
Drop outdated entries.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/1df92a0f8033341b937bbd8db5bc655b97f08091 |
|
da9810b
Move an entry to the right section.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/da9810b329a495b10691d61755237bc27530ee67 |
|
b06e610
Drop an outdated entry.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/b06e610ad159b8bd9a10388d49409418a51978ee |
|
b8ea691
Use _Py_ID() in listobject.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/b8ea691b8967cfdcf9a1d5891b3678e5a1677b3e |
|
42b714f
Use _Py_ID() in _warnings.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/42b714ffa5b421bc157ed02448ac8b05014ba02f |
|
c7c8faf
Use _Py_ID() in ast_unparse.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/c7c8faf46d4970ea480095a14d5627f79f1f0a49 |
|
92b0069
Use _Py_ID() in compile.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/92b006909795ca0c16a4caf0b61e458c310fe11e |
|
226671e
Use _Py_ID() in symtable.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/226671eade882688b339a1f4cfbd4c6d75cc2041 |
|
3acf264
Drop outdated entries.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/3acf264b10c320dcddb025e6f687577885c0569a |
|
3a02502
Use _Py_ID() in sysmodule.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/3a025023030eac35afcee1be5ba88a7fb2648d71 |
|
cd47553
Use _Py_ID() in the _io module.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/cd4755328c58279ed20925bd3661673bcac27130 |
|
f8b7071
Use _Py_ID() in _tracemalloc.c.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/f8b7071ad428425e10c8aea67ebc1d47804f0db4 |
|
76d2955
Drop an outdated entry.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/76d295539e16b2cde68b5a499922d542c389173e |
|
02995b0
Use b'', not ''.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/02995b0c1186c619be339fcafcdc0ad0687c7e2c |
|
efe208f
Use a ternary expression.
ericsnowcurrently Feb 16, 2022
| https://github.com/python/cpython/pull/31366/commits/efe208f3cdd879251c72808b65f43247374a5d77 |
|
1852340
Merge branch 'main' into global-objects-use-pyid
ericsnowcurrently Feb 17, 2022
| https://github.com/python/cpython/pull/31366/commits/1852340ef4dfbc12241299974a5ab062c4f4d894 |
|
Clear filters
| https://github.com/python/cpython/pull/31366/files |
| Please reload this page | https://github.com/python/cpython/pull/31366/files |
| Please reload this page | https://github.com/python/cpython/pull/31366/files |
|
pycore_global_strings.h
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
pycore_runtime_init.h
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
pycore_symtable.h
| https://github.com/python/cpython/pull/31366/files#diff-2a51d92a01c0bc62a48f185bdae9d50adebaffdc9bb4a1aff64f41edca712ddf |
|
_iomodule.c
| https://github.com/python/cpython/pull/31366/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
_iomodule.h
| https://github.com/python/cpython/pull/31366/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b |
|
bufferedio.c
| https://github.com/python/cpython/pull/31366/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a |
|
iobase.c
| https://github.com/python/cpython/pull/31366/files#diff-ff67b9b1e4944ed1b8750a6c53db460f2f8e98f073177e64a32e990844520e90 |
|
stringio.c
| https://github.com/python/cpython/pull/31366/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667 |
|
textio.c
| https://github.com/python/cpython/pull/31366/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3 |
|
_tracemalloc.c
| https://github.com/python/cpython/pull/31366/files#diff-e3c46632586859324a8cb7de0a3d6c60fcba118b5a0a262640102530ceca3a2a |
|
boolobject.c
| https://github.com/python/cpython/pull/31366/files#diff-12a2cdd9ce4f3f10b023eb53cf47f732321dff1721c1c244f8f85c62ce0e0506 |
|
classobject.c
| https://github.com/python/cpython/pull/31366/files#diff-d36823aa86f63074d7ae49b390602ea3840cabe4b54484c42aab8ea6b04a1479 |
|
codeobject.c
| https://github.com/python/cpython/pull/31366/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
listobject.c
| https://github.com/python/cpython/pull/31366/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81 |
|
_warnings.c
| https://github.com/python/cpython/pull/31366/files#diff-868cb9c3ec7f49459c652319e480e03ee132976b45fbedacb94958f8e0a9ea58 |
|
ast_unparse.c
| https://github.com/python/cpython/pull/31366/files#diff-d205bb48a85c9457b46a402a19e66c18860590b7ea8b55ae4da704444f433dba |
|
compile.c
| https://github.com/python/cpython/pull/31366/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057 |
|
pylifecycle.c
| https://github.com/python/cpython/pull/31366/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad |
|
symtable.c
| https://github.com/python/cpython/pull/31366/files#diff-1029343b7709f438c869082355577469b5aa784b454afa461ca2844ce9910ea6 |
|
sysmodule.c
| https://github.com/python/cpython/pull/31366/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb |
|
globals-to-fix.tsv
| https://github.com/python/cpython/pull/31366/files#diff-8d1e9a0d5771dfc3a628047509e2d4a1027327bd89392e5a3ec5fbd3d08cfa19 |
|
ignored.tsv
| https://github.com/python/cpython/pull/31366/files#diff-fa2373a9a002e491408e623369773045f4b7de90114b9f5ba6933bfbf2d8c45c |
| Include/internal/pycore_global_strings.h | https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/1852340ef4dfbc12241299974a5ab062c4f4d894/Include/internal/pycore_global_strings.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31366/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/pull/31366/files#diff-7656e411eccd63ff8aab3e11de3f45035665f6b639206d3f440727dfb5e0ebcf |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L312 |
| Include/internal/pycore_runtime_init.h | https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/1852340ef4dfbc12241299974a5ab062c4f4d894/Include/internal/pycore_runtime_init.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31366/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
|
| https://github.com/python/cpython/pull/31366/files#diff-84d4b72a69538f6e60865f5c0301f102c0dca577e47759ac07d7a9a034ee75a2 |
| Include/internal/pycore_symtable.h | https://github.com/python/cpython/pull/31366/files#diff-2a51d92a01c0bc62a48f185bdae9d50adebaffdc9bb4a1aff64f41edca712ddf |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/1852340ef4dfbc12241299974a5ab062c4f4d894/Include/internal/pycore_symtable.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31366/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31366/files#diff-2a51d92a01c0bc62a48f185bdae9d50adebaffdc9bb4a1aff64f41edca712ddf |
|
| https://github.com/python/cpython/pull/31366/files#diff-2a51d92a01c0bc62a48f185bdae9d50adebaffdc9bb4a1aff64f41edca712ddf |
| Please reload this page | https://github.com/python/cpython/pull/31366/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 |