René's URL Explorer Experiment


Title: gh-129724: Intern string constants in the compiler, not per code object by gpshead · Pull Request #159193 · python/cpython · GitHub

Open Graph Title: gh-129724: Intern string constants in the compiler, not per code object by gpshead · Pull Request #159193 · python/cpython

X Title: gh-129724: Intern string constants in the compiler, not per code object by gpshead · Pull Request #159193 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Compiling the same source could give code objects whose constants are shared differently, depending on which strings happened to be interned in the process. marshal then writes different bytes, so...

X Description: Compiling the same source could give code objects whose constants are shared differently, depending on which strings happened to be interned in the process. marshal then writes different bytes, so...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:6092d2ad-245e-dd2b-5092-dca822e608ba
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B7E:2E9D3B:36F645:450B8F:6B020ABD
html-safe-nonce3da64c6dafd9e1424b711e439d4116d717c137e5ab6561a80a95236bccfe10d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjdFOjJFOUQzQjozNkY2NDU6NDUwQjhGOjZCMDIwQUJEIiwidmlzaXRvcl9pZCI6IjgxNTY3MDk1MTQ3NTQ3ODgwMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac03cc68e99d36b7f4c722b74a98e02aeedf5933a41398432c8b99449ff9b2247c
hovercard-subject-tagpull_request:4821617854
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/159193/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e14a5ef8f10f7fa1711ded1a2a16c887c0cc8092291f6d66c3af15067f3ecb57/python/cpython/pull/159193
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e14a5ef8f10f7fa1711ded1a2a16c887c0cc8092291f6d66c3af15067f3ecb57/python/cpython/pull/159193
og:image:altCompiling the same source could give code objects whose constants are shared differently, depending on which strings happened to be interned in the process. marshal then writes different bytes, so...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegpshead
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/159193#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159193
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159193
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/159193
Reloadhttps://github.com/python/cpython/pull/159193
Reloadhttps://github.com/python/cpython/pull/159193
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
gpsheadhttps://github.com/gpshead
python:mainhttps://github.com/python/cpython/tree/main
gpshead:compile-intern-constshttps://github.com/gpshead/cpython/tree/compile-intern-consts
Conversationhttps://github.com/python/cpython/pull/159193
Commits1 (1)https://github.com/python/cpython/pull/159193/commits
Checkshttps://github.com/python/cpython/pull/159193/checks
Files changedhttps://github.com/python/cpython/pull/159193/files
gh-129724: Intern string constants in the compiler, not per code objecthttps://github.com/python/cpython/pull/159193#top
gpsheadhttps://github.com/gpshead
python:mainhttps://github.com/python/cpython/tree/main
gpshead:compile-intern-constshttps://github.com/gpshead/cpython/tree/compile-intern-consts
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 11, 2026https://github.com/python/cpython/pull/159193#issue-5804277337
Please reload this pagehttps://github.com/python/cpython/pull/159193
gh-129724https://github.com/python/cpython/issues/129724
#122180https://github.com/python/cpython/pull/122180
gh-159192https://github.com/python/cpython/pull/159192
gh-129724https://github.com/python/cpython/issues/129724
gh-159184https://github.com/python/cpython/issues/159184
gh-159185https://github.com/python/cpython/issues/159185
gh-159188https://github.com/python/cpython/issues/159188
Please reload this pagehttps://github.com/python/cpython/pull/159193
https://github.com/gpshead
pythongh-129724https://github.com/python/cpython/issues/129724
: Intern string constants in the compiler, not per cod…https://github.com/python/cpython/pull/159193/commits/badcae76551eee7fcc49972d53f2d9d722aa08cd
badcae7https://github.com/python/cpython/pull/159193/commits/badcae76551eee7fcc49972d53f2d9d722aa08cd
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
iritkatrielhttps://github.com/iritkatriel
markshannonhttps://github.com/markshannon
code ownershttps://github.com/python/cpython/blob/e878e1e9688ebaafbfae700a872fa30a9f86a4c4/.github/CODEOWNERS#L225
October 11, 2026 19:13https://github.com/python/cpython/pull/159193#event-32999673255
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Oct 11, 2026https://github.com/python/cpython/pull/159193#event-32999676040
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 11, 2026 https://github.com/python/cpython/pull/159193#ref-issue-2835430488
Bytecode compilation output depends on order of files compiled #129724 https://github.com/python/cpython/issues/129724
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 11, 2026https://github.com/python/cpython/pull/159193#event-32999677155
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
interpreter-core https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Ainterpreter-core
Oct 11, 2026https://github.com/python/cpython/pull/159193#event-32999688877
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 11, 2026 https://github.com/python/cpython/pull/159193#ref-pullrequest-5330080170
gh-129724: Make marshalled code output deterministic #156862 https://github.com/python/cpython/pull/156862
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
methanehttps://github.com/methane
October 11, 2026 19:23https://github.com/python/cpython/pull/159193#event-33000025672
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 11, 2026https://github.com/python/cpython/pull/159193#event-33000027399
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 11, 2026 https://github.com/python/cpython/pull/159193#ref-pullrequest-5804198883
gh-129724: gh-156504: Make marshal output independent of reference counts #159192 https://github.com/python/cpython/pull/159192
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Oct 11, 2026https://github.com/python/cpython/pull/159193#event-33000320259
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 11, 2026 https://github.com/python/cpython/pull/159193#ref-pullrequest-2425398908
gh-121954: Don't mutate tuples in _PyCode_New #122180 https://github.com/python/cpython/pull/122180
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Oct 11, 2026https://github.com/python/cpython/pull/159193#event-33000590031
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Oct 11, 2026https://github.com/python/cpython/pull/159193#issuecomment-6112933132
@gpsheadhttps://github.com/gpshead
badcae7https://github.com/python/cpython/commit/badcae76551eee7fcc49972d53f2d9d722aa08cd
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F159193%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F159193%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/159193
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Oct 11, 2026https://github.com/python/cpython/pull/159193#event-33000591910
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 11, 2026 https://github.com/python/cpython/pull/159193#ref-pullrequest-5805172078
gh-159188: Do not immortalize constants in compile() of an AST #159198 https://github.com/python/cpython/pull/159198
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
serhiy-storchakahttps://github.com/serhiy-storchaka
October 11, 2026 23:08https://github.com/python/cpython/pull/159193#event-33007875341
https://github.com/methane
methanehttps://github.com/methane
Oct 13, 2026 https://github.com/python/cpython/pull/159193#pullrequestreview-5498854716
View reviewed changes https://github.com/python/cpython/pull/159193/files/badcae76551eee7fcc49972d53f2d9d722aa08cd
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 13, 2026https://github.com/python/cpython/pull/159193#event-33101624307
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
627eabfhttps://github.com/python/cpython/commit/627eabf31cf9a2ab39761492493e1e06a6526e9b
Oct 13, 2026https://github.com/python/cpython/pull/159193#event-33101797000
Please reload this pagehttps://github.com/python/cpython/pull/159193
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Oct 13, 2026https://github.com/python/cpython/pull/159193#event-33101799312
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
October 13, 2026 04:38https://github.com/python/cpython/pull/159193#event-33101802005
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Oct 13, 2026https://github.com/python/cpython/pull/159193#event-33103215044
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Oct 13, 2026https://github.com/python/cpython/pull/159193#issuecomment-6138699888
@gpsheadhttps://github.com/gpshead
Please reload this pagehttps://github.com/python/cpython/pull/159193
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 13, 2026https://github.com/python/cpython/pull/159193#issuecomment-6138703305
GH-159291https://github.com/python/cpython/pull/159291
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/159193
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Oct 13, 2026https://github.com/python/cpython/pull/159193#event-33103231331
https://github.com/khmyznikov
khmyznikovhttps://github.com/khmyznikov
Oct 14, 2026 https://github.com/python/cpython/pull/159193#ref-pullrequest-5261928878
Pip install performance improvements on Windows pypa/pip#14286 https://github.com/pypa/pip/pull/14286
gpsheadhttps://github.com/gpshead
Oct 24, 2026 https://github.com/python/cpython/pull/159193#ref-commit-081f6fb
https://github.com/gpshead
gh-129724https://github.com/python/cpython/issues/129724
: improve the news entry wording forhttps://github.com/python/cpython/commit/081f6fba35f2b1be8a3166104237f9682b620f90
gh-159192https://github.com/python/cpython/pull/159192
andhttps://github.com/python/cpython/commit/081f6fba35f2b1be8a3166104237f9682b620f90
gh-159193https://github.com/python/cpython/pull/159193
(https://github.com/python/cpython/commit/081f6fba35f2b1be8a3166104237f9682b620f90
…https://github.com/python/cpython/pull/160628
081f6fbhttps://github.com/python/cpython/commit/081f6fba35f2b1be8a3166104237f9682b620f90
…gh-160628https://github.com/python/cpython/pull/160628
gh-159192https://github.com/python/cpython/pull/159192
gh-159193https://github.com/python/cpython/pull/159193
github-actionshttps://github.com/apps/github-actions
Nov 19, 2026 https://github.com/python/cpython/pull/159193#ref-commit-49d9a3f
python3: Backport deterministic constant interning to 25.08https://github.com/castrojo/freedesktop-sdk/commit/49d9a3f76acece67e790cf074bd6570e095cabd3
49d9a3fhttps://github.com/castrojo/freedesktop-sdk/commit/49d9a3f76acece67e790cf074bd6570e095cabd3
python/cpython@627eabfhttps://github.com/python/cpython/commit/627eabf31cf9a2ab39761492493e1e06a6526e9b
python/cpython#159193https://github.com/python/cpython/pull/159193
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159193
https://github.com/methane
methane https://github.com/methane
https://github.com/python/cpython/pull/159193/files/badcae76551eee7fcc49972d53f2d9d722aa08cd
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/159193
https://github.com/gpshead
gpshead https://github.com/gpshead
interpreter-core https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Ainterpreter-core
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
Please reload this pagehttps://github.com/python/cpython/pull/159193
https://github.com/gpshead
https://github.com/bedevere-bot
https://github.com/methane
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.