| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:53aadcea-9e91-8c61-2423-8bddb0a24a16 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BE9A:361CC5:F9F5B0:153BE05:6969F3D9 |
| html-safe-nonce | bd4041feb4a4eb613617b927d3fc594dcd5f9043aa13e325e6c0de0ea8b5c63e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTlBOjM2MUNDNTpGOUY1QjA6MTUzQkUwNTo2OTY5RjNEOSIsInZpc2l0b3JfaWQiOiIyMjk5ODQ3OTc5NjY2MzcxNTQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d7f4d0d92232546e78c979bb91e2b9c80e5d5f861adedc985d58e57e1a70a558 |
| hovercard-subject-tag | pull_request:801682382 |
| 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/30092/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 | The array of small PyLong objects has been statically declared. Here I also statically initialize them. Consequently they are no longer initialized dynamically during runtime init.
I've also ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/30092/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30092%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%2F30092%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/30092/files |
| Reload | https://github.com/python/cpython/pull/30092/files |
| Reload | https://github.com/python/cpython/pull/30092/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/30092/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/30092/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-small-ints | https://github.com/ericsnowcurrently/cpython/tree/global-objects-small-ints |
|
Conversation
2
| https://github.com/python/cpython/pull/30092 |
|
Commits
12
| https://github.com/python/cpython/pull/30092/commits |
|
Checks
0
| https://github.com/python/cpython/pull/30092/checks |
|
Files changed
| https://github.com/python/cpython/pull/30092/files |
| Please reload this page | https://github.com/python/cpython/pull/30092/files |
|
bpo-45953: Statically initialize the small ints.
| https://github.com/python/cpython/pull/30092/files#top |
|
Show all changes
12 commits
| https://github.com/python/cpython/pull/30092/files |
|
0d9794a
Add struct _Py_global_objects.
ericsnowcurrently Dec 8, 2021
| https://github.com/python/cpython/pull/30092/commits/0d9794ad7c888bb5bb5c694401717b1d58b1191d |
|
3b0abc9
Add _Py_global_objects.singletons.
ericsnowcurrently Dec 10, 2021
| https://github.com/python/cpython/pull/30092/commits/3b0abc91f5054c5f909aaf2c0a060a6f1f9d99cc |
|
c5e5702
Add _Py_global_objects_reset().
ericsnowcurrently Dec 13, 2021
| https://github.com/python/cpython/pull/30092/commits/c5e57021c685e26a327b86a85b084c977a71014e |
|
1432a35
Move the small ints to _Py_global_objects.
ericsnowcurrently Dec 8, 2021
| https://github.com/python/cpython/pull/30092/commits/1432a354e020f45b3dd23d2a5f8ccd9d374eba1d |
|
e7d41f2
Drop an unneeded include.
ericsnowcurrently Dec 13, 2021
| https://github.com/python/cpython/pull/30092/commits/e7d41f2ec5e8f2a6d4288403f6ae197678019221 |
|
fca595b
Move a build-time check to the right file.
ericsnowcurrently Dec 13, 2021
| https://github.com/python/cpython/pull/30092/commits/fca595b4374738b277a9cd19c398254112b74da7 |
|
8f10ad0
Statically initialize the small ints.
ericsnowcurrently Dec 13, 2021
| https://github.com/python/cpython/pull/30092/commits/8f10ad04f82df485d5095bd6d8ad32eb453d44a5 |
|
564a77c
Fix a comment.
ericsnowcurrently Dec 13, 2021
| https://github.com/python/cpython/pull/30092/commits/564a77c82df194b43601a7852a975a13ad2eeb60 |
|
9959c5a
Clean up the initializer.
ericsnowcurrently Dec 13, 2021
| https://github.com/python/cpython/pull/30092/commits/9959c5a3f2caeceed8e601bb75fe5e0dd5fea383 |
|
c4c85e7
Separate the global objects from the type-specific helpers.
ericsnowcurrently Dec 13, 2021
| https://github.com/python/cpython/pull/30092/commits/c4c85e7880546c6e4b246de946eaf1b794b09bfe |
|
c017103
Separate the int helpers.
ericsnowcurrently Dec 13, 2021
| https://github.com/python/cpython/pull/30092/commits/c017103ba1760ff080e3be093a038081d34f3260 |
|
f2821bd
Do not clear _PyRuntime.global_objects in _PyRuntimeState_reset().
ericsnowcurrently Dec 14, 2021
| https://github.com/python/cpython/pull/30092/commits/f2821bd8475046a78c5ab3392b3a1d8e5a245b8b |
|
Clear filters
| https://github.com/python/cpython/pull/30092/files |
| Please reload this page | https://github.com/python/cpython/pull/30092/files |
| Please reload this page | https://github.com/python/cpython/pull/30092/files |
|
pycore_global_objects.h
| https://github.com/python/cpython/pull/30092/files#diff-4107cf9e9dd24a85192b33aa7941ed35f5650c08a0200450b6e4ad19b81dbcf9 |
|
pycore_long.h
| https://github.com/python/cpython/pull/30092/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
pycore_long_state.h
| https://github.com/python/cpython/pull/30092/files#diff-36bbdbe6339158df8ef7839a940bac7ec3e5caf37ba2b2dc2dd7c13712b4972e |
|
pycore_runtime.h
| https://github.com/python/cpython/pull/30092/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862 |
|
Makefile.pre.in
| https://github.com/python/cpython/pull/30092/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
longobject.c
| https://github.com/python/cpython/pull/30092/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
pythoncore.vcxproj
| https://github.com/python/cpython/pull/30092/files#diff-4295039788386c2986b811f2a6b59cf088be59822b24b4f1243c9e9b184f65fb |
|
pythoncore.vcxproj.filters
| https://github.com/python/cpython/pull/30092/files#diff-9e715828befc9c50c8b483b06d4923cda0db44f57d0c20e6a6d428ba60bfa0c5 |
|
pylifecycle.c
| https://github.com/python/cpython/pull/30092/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L316 |
| Include/internal/pycore_global_objects.h | https://github.com/python/cpython/pull/30092/files#diff-4107cf9e9dd24a85192b33aa7941ed35f5650c08a0200450b6e4ad19b81dbcf9 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/f2821bd8475046a78c5ab3392b3a1d8e5a245b8b/Include/internal/pycore_global_objects.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30092/{{ revealButtonHref }} |
| Include/internal/pycore_long.h | https://github.com/python/cpython/pull/30092/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/f2821bd8475046a78c5ab3392b3a1d8e5a245b8b/Include/internal/pycore_long.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30092/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30092/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
| https://github.com/python/cpython/pull/30092/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L313 |
| Include/internal/pycore_long_state.h | https://github.com/python/cpython/pull/30092/files#diff-36bbdbe6339158df8ef7839a940bac7ec3e5caf37ba2b2dc2dd7c13712b4972e |
|
View file
| https://github.com/python/cpython/blob/3f398a77d37b5dfd51dabbc362d482a482fa885a/Include/internal/pycore_long_state.h |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/python/cpython/pull/30092/files |
| Please reload this page | https://github.com/python/cpython/pull/30092/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 |