René's URL Explorer Experiment


Title: Assigning `__conditional_annotations__` crashes the interpreter · Issue #154902 · python/cpython · GitHub

Open Graph Title: Assigning `__conditional_annotations__` crashes the interpreter · Issue #154902 · python/cpython

X Title: Assigning `__conditional_annotations__` crashes the interpreter · Issue #154902 · python/cpython

Description: Crash report What happened? In CPython 3.14 and later, assigning to the global __conditional_annotations__ before a variable annotation produces a segfault. Here is a minimal reproducible example: __conditional_annotations__ = 0 a: 1 Ana...

Open Graph Description: Crash report What happened? In CPython 3.14 and later, assigning to the global __conditional_annotations__ before a variable annotation produces a segfault. Here is a minimal reproducible example: ...

X Description: Crash report What happened? In CPython 3.14 and later, assigning to the global __conditional_annotations__ before a variable annotation produces a segfault. Here is a minimal reproducible example: ...

Opengraph URL: https://github.com/python/cpython/issues/154902

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assigning `__conditional_annotations__` crashes the interpreter","articleBody":"# Crash report\n\n### What happened?\n\nIn CPython 3.14 and later, assigning to the global `__conditional_annotations__` before a variable annotation produces a segfault.\n\nHere is a minimal reproducible example:\n\n```python\n__conditional_annotations__ = 0\na: 1\n```\n\nAnalyzing the bytecode, the compiler first initializes `__conditional_annotations__` to an empty set. Whenever an annotation is declared, a `SET_ADD` is emitted under the assumption that the underlying type is still a set. But we can re-assign `__conditional_annotations__` to another object in between, leading to a type confusion:\n\n```python\nBUILD_SET                0\nSTORE_NAME               0 (__conditional_annotations__)\nLOAD_SMALL_INT           0\nSTORE_NAME               0 (__conditional_annotations__)\n\nLOAD_NAME                0 (__conditional_annotations__)\nLOAD_SMALL_INT           0\nSET_ADD                  1\n```\n\n### CPython versions tested on:\n\n3.14, 3.15\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-155026\n* gh-155071\n* gh-155072\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/Lydxn","@type":"Person","name":"Lydxn"},"datePublished":"2026-07-30T00:47:53Z","url":"https://github.com/python/cpython/issues/154902"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4a02460c-4b15-fa8f-a1d9-e0b768b5b5c4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB6E:14EB6E:14CA1E5:1B5C814:6B01F3A7
html-safe-nonce2365c29ccb9e466cba4953d5b4a691d2648d5daf493c9cec4cd641c2c8d77a2a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjZFOjE0RUI2RToxNENBMUU1OjFCNUM4MTQ6NkIwMUYzQTciLCJ2aXNpdG9yX2lkIjoiNjEzMTYzODY0OTUwODQ1OTQzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf5fce10e0a2ec3b47f21ffd7995890b77d4c05cfd10b688b62414cef7007de7a
hovercard-subject-tagissue:5014879235
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/154902/issue_layout
twitter:imagehttps://opengraph.githubassets.com/70b22d763aef4d795afc6340e8257fd4fb04aa6ad2aed415f8bc9a10f21419b6/python/cpython/issues/154902
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/70b22d763aef4d795afc6340e8257fd4fb04aa6ad2aed415f8bc9a10f21419b6/python/cpython/issues/154902
og:image:altCrash report What happened? In CPython 3.14 and later, assigning to the global __conditional_annotations__ before a variable annotation produces a segfault. Here is a minimal reproducible example: ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLydxn
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/154902#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F154902
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%2Fissues%2F154902
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/154902
Reloadhttps://github.com/python/cpython/issues/154902
Reloadhttps://github.com/python/cpython/issues/154902
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/154902
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/154902
Assigning __conditional_annotations__ crashes the interpreterhttps://github.com/python/cpython/issues/154902#top
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-typinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-typing%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/Lydxn
Lydxnhttps://github.com/Lydxn
on Jul 30, 2026https://github.com/python/cpython/issues/154902#issue-5014879235
gh-154902: Add an intrinsic for conditional annotations #155026https://github.com/python/cpython/pull/155026
[3.15] gh-154902: Type-check the SET_ADD operand #155071https://github.com/python/cpython/pull/155071
[3.14] gh-154902: Type-check the SET_ADD operand #155072https://github.com/python/cpython/pull/155072
Nexthttps://github.com/python/cpython/issues/154902?timeline_page=1
Lydxnhttps://github.com/Lydxn
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
on Jul 30, 2026https://github.com/python/cpython/issues/154902#event-28693303405
Lydxnhttps://github.com/Lydxn
on Jul 30, 2026https://github.com/python/cpython/issues/154902#event-28693310325
aiskhttps://github.com/aisk
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
on Jul 30, 2026https://github.com/python/cpython/issues/154902#event-28701502238
https://github.com/deadlovelll
deadlovelllhttps://github.com/deadlovelll
on Jul 30, 2026https://github.com/python/cpython/issues/154902#issuecomment-5128137365
@Lydxnhttps://github.com/Lydxn
johnslavikhttps://github.com/johnslavik
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
topic-typinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-typing%22
on Jul 30, 2026https://github.com/python/cpython/issues/154902#event-28710667999
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
on Jul 30, 2026https://github.com/python/cpython/issues/154902#issuecomment-5128768122
@JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Jul 30, 2026https://github.com/python/cpython/issues/154902#issuecomment-5129148264
@BHUVANSH855https://github.com/BHUVANSH855
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Jul 30, 2026https://github.com/python/cpython/issues/154902#issuecomment-5132129511
https://github.com/deadlovelll
deadlovelllhttps://github.com/deadlovelll
on Jul 30, 2026https://github.com/python/cpython/issues/154902#issuecomment-5132465447
https://github.com/deadlovelll
deadlovelllhttps://github.com/deadlovelll
on Jul 31, 2026https://github.com/python/cpython/issues/154902#issuecomment-5141412901
@JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Jul 31, 2026https://github.com/python/cpython/issues/154902#issuecomment-5144136254
https://github.com/Nico-Posada
Nico-Posadahttps://github.com/Nico-Posada
on Jul 31, 2026https://github.com/python/cpython/issues/154902#issuecomment-5145527758
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Jul 31, 2026https://github.com/python/cpython/issues/154902#issuecomment-5145711439
https://github.com/Lydxn
Lydxnhttps://github.com/Lydxn
on Jul 31, 2026https://github.com/python/cpython/issues/154902#issuecomment-5147203972
https://github.com/deadlovelll
deadlovelllhttps://github.com/deadlovelll
on Jul 31, 2026https://github.com/python/cpython/issues/154902#issuecomment-5147702210
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Jul 31, 2026https://github.com/python/cpython/issues/154902#issuecomment-5147748998
https://github.com/deadlovelll
deadlovelllhttps://github.com/deadlovelll
on Aug 1, 2026https://github.com/python/cpython/issues/154902#issuecomment-5151034422
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Aug 1, 2026https://github.com/python/cpython/issues/154902#issuecomment-5151241066
deadlovelllhttps://github.com/deadlovelll
on Aug 1, 2026https://github.com/python/cpython/issues/154902#event-28817790386
pythongh-154902: Add an intrinsic for conditional annotationshttps://github.com/deadlovelll/cpython/commit/d810b5e4cb8c564db7f804ac5b75b170ab3e974f
pythongh-154902https://github.com/python/cpython/issues/154902
d810b5ehttps://github.com/deadlovelll/cpython/commit/d810b5e4cb8c564db7f804ac5b75b170ab3e974f
pythongh-154902: Add an intrinsic for conditional annotationshttps://github.com/deadlovelll/cpython/commit/1abe4efe4e78d28f18f10a36c5b58435b6685ced
pythongh-154902https://github.com/python/cpython/issues/154902
1abe4efhttps://github.com/deadlovelll/cpython/commit/1abe4efe4e78d28f18f10a36c5b58435b6685ced
pythongh-154902: Add an intrinsic for conditional annotationshttps://github.com/deadlovelll/cpython/commit/fc16e15898dbe7b3ede8e4f1f6dd48d27ee8f49a
pythongh-154902https://github.com/python/cpython/issues/154902
fc16e15https://github.com/deadlovelll/cpython/commit/fc16e15898dbe7b3ede8e4f1f6dd48d27ee8f49a
https://github.com/deadlovelll
deadlovelllhttps://github.com/deadlovelll
on Aug 1, 2026https://github.com/python/cpython/issues/154902#issuecomment-5151434254
#155026https://github.com/python/cpython/pull/155026
hugovkhttps://github.com/hugovk
on Aug 4, 2026https://github.com/python/cpython/issues/154902#event-28941018419
[3.15] gh-154902: Type-check the SET_ADD operand (#155071)https://github.com/python/cpython/commit/398dbef62a2542644b2c1e31d25bcc61837671d5
gh-154902https://github.com/python/cpython/issues/154902
#155071https://github.com/python/cpython/pull/155071
398dbefhttps://github.com/python/cpython/commit/398dbef62a2542644b2c1e31d25bcc61837671d5
JelleZijlstrahttps://github.com/JelleZijlstra
on Aug 5, 2026https://github.com/python/cpython/issues/154902#event-29014608971
[3.14] gh-154902: Type-check the SET_ADD operand (#155072)https://github.com/python/cpython/commit/c21e7c45a9770fba9ea3b8d5abb52c19274a08ef
gh-154902https://github.com/python/cpython/issues/154902
#155072https://github.com/python/cpython/pull/155072
c21e7c4https://github.com/python/cpython/commit/c21e7c45a9770fba9ea3b8d5abb52c19274a08ef
gh-154902: Add an intrinsic for conditional annotations (#155026)https://github.com/python/cpython/commit/dd5a285387eece8cb9667fad5895c3a3468e5e66
gh-154902https://github.com/python/cpython/issues/154902
#155026https://github.com/python/cpython/pull/155026
dd5a285https://github.com/python/cpython/commit/dd5a285387eece8cb9667fad5895c3a3468e5e66
johnslavikhttps://github.com/johnslavik
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 7, 2026https://github.com/python/cpython/issues/154902#event-29119258566
mbeijenhttps://github.com/mbeijen
on Aug 14, 2026https://github.com/python/cpython/issues/154902#event-29455500691
pythongh-154902: Add an intrinsic for conditional annotations (python…https://github.com/mbeijen/cpython/commit/780d49d3ece87adf1b87e6d1732734ecda11fd31
pythongh-154902https://github.com/python/cpython/issues/154902
python…https://github.com/python/cpython/pull/155026
780d49dhttps://github.com/mbeijen/cpython/commit/780d49d3ece87adf1b87e6d1732734ecda11fd31
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/154902
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/154902
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-typinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-typing%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
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.