| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b40b45a6-4ce9-4bb3-1945-fb02c80538fd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EA20:1C94F:35A8016:44A8234:6B0233EB |
| html-safe-nonce | f14933862bb26d2b3fb8bfb68479d977a76072c7a267117cf80403c2f09d1ea1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTIwOjFDOTRGOjM1QTgwMTY6NDRBODIzNDo2QjAyMzNFQiIsInZpc2l0b3JfaWQiOiIyMTQyMDQyOTQ4NDMzNDkwOTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a4e628baf8cad2632a011a58c6fbc75f0d3f2663562745f4ced9379d949c292f |
| hovercard-subject-tag | pull_request:1856766258 |
| 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/118667/files |
| twitter:image | https://avatars.githubusercontent.com/u/655866?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/655866?s=400&v=4 |
| og:image:alt | We already intern and immortalize most string constants. In the free-threaded build, other constants are a frequent source of reference count contention because they are shared by all threads runni... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/118667/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F118667%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| 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 |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | 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 |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F118667%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/118667/files |
| Reload | https://github.com/python/cpython/pull/118667/files |
| Reload | https://github.com/python/cpython/pull/118667/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | 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/insights |
| 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 |
| colesbury | https://github.com/colesbury |
| python:main | https://github.com/python/cpython/tree/main |
| colesbury:gh-118527-code-consts | https://github.com/colesbury/cpython/tree/gh-118527-code-consts |
|
Conversation
8
| https://github.com/python/cpython/pull/118667 |
|
Commits
8
| https://github.com/python/cpython/pull/118667/commits |
|
Checks
0
| https://github.com/python/cpython/pull/118667/checks |
|
Files changed
| https://github.com/python/cpython/pull/118667/files |
| Please reload this page | https://github.com/python/cpython/pull/118667/files |
|
gh-118527: Intern code consts in free-threaded build
| https://github.com/python/cpython/pull/118667/files#top |
|
Show all changes
8 commits
| https://github.com/python/cpython/pull/118667/files |
|
5e8c0f0
gh-118527: Intern code consts in free-threaded build
colesbury May 3, 2024
| https://github.com/python/cpython/pull/118667/commits/5e8c0f02ce90db20aef2062e09df5fcaef83b8ce |
|
670ebf0
Add lock to LOCKS_INIT
colesbury May 6, 2024
| https://github.com/python/cpython/pull/118667/commits/670ebf0232e42ea7830353c3107e28bd01703a53 |
|
ddd088d
Handle slice members
colesbury May 6, 2024
| https://github.com/python/cpython/pull/118667/commits/ddd088d75dfafb30c4c8cd3fa0d60a78c9c2d52d |
|
19ee314
Add unit test
colesbury May 6, 2024
| https://github.com/python/cpython/pull/118667/commits/19ee314dc143c816718289bfe7311d661793950a |
|
d234658
Intern all string constants in the free-threaded build
colesbury May 6, 2024
| https://github.com/python/cpython/pull/118667/commits/d234658ad57cc842b7888b95693d90cf903fdaf7 |
|
aee1184
Keep test_frozenmain.h stable
colesbury May 6, 2024
| https://github.com/python/cpython/pull/118667/commits/aee1184c3a694ece5542f3b22a56cf018470ee7d |
|
e3893b5
Merge branch 'main' into gh-118527-code-consts
colesbury May 6, 2024
| https://github.com/python/cpython/pull/118667/commits/e3893b5e47f2f0bf8edfe53d41a43ec33a1c2b9b |
|
f5cab78
Fix test and keep test_frozenmain.h stable
colesbury May 6, 2024
| https://github.com/python/cpython/pull/118667/commits/f5cab7832df1c04fecd4d02875b7e4b56462d791 |
|
Clear filters
| https://github.com/python/cpython/pull/118667/files |
| Please reload this page | https://github.com/python/cpython/pull/118667/files |
| Please reload this page | https://github.com/python/cpython/pull/118667/files |
|
pycore_code.h
| https://github.com/python/cpython/pull/118667/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
pycore_interp.h
| https://github.com/python/cpython/pull/118667/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
|
pycore_setobject.h
| https://github.com/python/cpython/pull/118667/files#diff-43c2dee2f8b4443a2bddf2593931bd50efa2aea643f89c65421d92e6e6df03b1 |
|
__init__.py
| https://github.com/python/cpython/pull/118667/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d |
|
test_code.py
| https://github.com/python/cpython/pull/118667/files#diff-08d8a239ab9b84cf01875e28a6dae873628b56bfe94d30c3336c4a607d8036e5 |
|
test_internals.py
| https://github.com/python/cpython/pull/118667/files#diff-c0fb8353bb97bb7c7cb2c4ff398a6c2442ee7c19a8fff01d21fa71a5bdd36c6c |
|
test_python_api.py
| https://github.com/python/cpython/pull/118667/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8 |
|
test_memoryio.py
| https://github.com/python/cpython/pull/118667/files#diff-ab2f917c9da1a7cc15a25cebacc44bcbddf809cc364eb02b29b14fce3d7d514f |
|
_testinternalcapi.c
| https://github.com/python/cpython/pull/118667/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
codeobject.c
| https://github.com/python/cpython/pull/118667/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
setobject.c
| https://github.com/python/cpython/pull/118667/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
|
bltinmodule.c
| https://github.com/python/cpython/pull/118667/files#diff-e4fd8b8ee6a147f86c0719ff122aca6dfca36edbd4812c87892698b3b72e40a1 |
|
pylifecycle.c
| https://github.com/python/cpython/pull/118667/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad |
|
pystate.c
| https://github.com/python/cpython/pull/118667/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141 |
| Include/internal/pycore_code.h | https://github.com/python/cpython/pull/118667/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Include/internal/pycore_code.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/118667/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
| Please reload this page | https://github.com/python/cpython/pull/118667/files |
|
| https://github.com/python/cpython/pull/118667/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L325 |
| Include/internal/pycore_interp.h | https://github.com/python/cpython/pull/118667/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Include/internal/pycore_interp.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
|
| https://github.com/python/cpython/pull/118667/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0 |
| Include/internal/pycore_setobject.h | https://github.com/python/cpython/pull/118667/files#diff-43c2dee2f8b4443a2bddf2593931bd50efa2aea643f89c65421d92e6e6df03b1 |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Include/internal/pycore_setobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-43c2dee2f8b4443a2bddf2593931bd50efa2aea643f89c65421d92e6e6df03b1 |
|
| https://github.com/python/cpython/pull/118667/files#diff-43c2dee2f8b4443a2bddf2593931bd50efa2aea643f89c65421d92e6e6df03b1 |
| Lib/test/support/__init__.py | https://github.com/python/cpython/pull/118667/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Lib/test/support/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d |
|
| https://github.com/python/cpython/pull/118667/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d |
| Lib/test/test_code.py | https://github.com/python/cpython/pull/118667/files#diff-08d8a239ab9b84cf01875e28a6dae873628b56bfe94d30c3336c4a607d8036e5 |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Lib/test/test_code.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-08d8a239ab9b84cf01875e28a6dae873628b56bfe94d30c3336c4a607d8036e5 |
|
| https://github.com/python/cpython/pull/118667/files#diff-08d8a239ab9b84cf01875e28a6dae873628b56bfe94d30c3336c4a607d8036e5 |
|
| https://github.com/python/cpython/pull/118667/files#diff-08d8a239ab9b84cf01875e28a6dae873628b56bfe94d30c3336c4a607d8036e5 |
|
| https://github.com/python/cpython/pull/118667/files#diff-08d8a239ab9b84cf01875e28a6dae873628b56bfe94d30c3336c4a607d8036e5 |
| Lib/test/test_ctypes/test_internals.py | https://github.com/python/cpython/pull/118667/files#diff-c0fb8353bb97bb7c7cb2c4ff398a6c2442ee7c19a8fff01d21fa71a5bdd36c6c |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Lib/test/test_ctypes/test_internals.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-c0fb8353bb97bb7c7cb2c4ff398a6c2442ee7c19a8fff01d21fa71a5bdd36c6c |
|
| https://github.com/python/cpython/pull/118667/files#diff-c0fb8353bb97bb7c7cb2c4ff398a6c2442ee7c19a8fff01d21fa71a5bdd36c6c |
| Lib/test/test_ctypes/test_python_api.py | https://github.com/python/cpython/pull/118667/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8 |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Lib/test/test_ctypes/test_python_api.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8 |
|
| https://github.com/python/cpython/pull/118667/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8 |
| Lib/test/test_memoryio.py | https://github.com/python/cpython/pull/118667/files#diff-ab2f917c9da1a7cc15a25cebacc44bcbddf809cc364eb02b29b14fce3d7d514f |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Lib/test/test_memoryio.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-ab2f917c9da1a7cc15a25cebacc44bcbddf809cc364eb02b29b14fce3d7d514f |
|
| https://github.com/python/cpython/pull/118667/files#diff-ab2f917c9da1a7cc15a25cebacc44bcbddf809cc364eb02b29b14fce3d7d514f |
| Modules/_testinternalcapi.c | https://github.com/python/cpython/pull/118667/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
View file
| https://github.com/colesbury/cpython/blob/f5cab7832df1c04fecd4d02875b7e4b56462d791/Modules/_testinternalcapi.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/118667/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/118667/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/118667/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/118667/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/118667/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
| Please reload this page | https://github.com/python/cpython/pull/118667/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 |