René's URL Explorer Experiment


Title: bpo-45953: Statically initialize the small ints. by ericsnowcurrently · Pull Request #30092 · python/cpython · GitHub

Open Graph Title: bpo-45953: Statically initialize the small ints. by ericsnowcurrently · Pull Request #30092 · python/cpython

X Title: bpo-45953: Statically initialize the small ints. by ericsnowcurrently · Pull Request #30092 · python/cpython

Description: 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 moved them under a new sub-struct in _PyRuntimeState, in preparation for static allocation and initialization of other global objects. FWIW, I considered adding a script for generating the array initializer, but figured that can be done separately if valuable. https://bugs.python.org/issue45953

Open Graph Description: 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 ...

X Description: 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 a...

Opengraph URL: https://github.com/python/cpython/pull/30092

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:53aadcea-9e91-8c61-2423-8bddb0a24a16
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBE9A:361CC5:F9F5B0:153BE05:6969F3D9
html-safe-noncebd4041feb4a4eb613617b927d3fc594dcd5f9043aa13e325e6c0de0ea8b5c63e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTlBOjM2MUNDNTpGOUY1QjA6MTUzQkUwNTo2OTY5RjNEOSIsInZpc2l0b3JfaWQiOiIyMjk5ODQ3OTc5NjY2MzcxNTQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd7f4d0d92232546e78c979bb91e2b9c80e5d5f861adedc985d58e57e1a70a558
hovercard-subject-tagpull_request:801682382
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/30092/files
twitter:imagehttps://avatars.githubusercontent.com/u/1152074?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1152074?s=400&v=4
og:image:altThe 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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
Reloadhttps://github.com/python/cpython/pull/30092/files
Reloadhttps://github.com/python/cpython/pull/30092/files
Reloadhttps://github.com/python/cpython/pull/30092/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 pagehttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:global-objects-small-intshttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/30092/files
Please reload this pagehttps://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.hhttps://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.hhttps://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.hhttps://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 pagehttps://github.com/python/cpython/pull/30092/files
Please reload this pagehttps://github.com/python/cpython/pull/30092/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.