René's URL Explorer Experiment


Title: gh-130415: Narrowing to constants in branches involving `is` comparisons with a constant by reidenong · Pull Request #143895 · python/cpython · GitHub

Open Graph Title: gh-130415: Narrowing to constants in branches involving `is` comparisons with a constant by reidenong · Pull Request #143895 · python/cpython

X Title: gh-130415: Narrowing to constants in branches involving `is` comparisons with a constant by reidenong · Pull Request #143895 · python/cpython

Description: This PR does constant narrowing in the JIT optimizer for branches with _IS_OP comparisons with the constant singletons True, False, None. It introduces a new optimizer symbol, predicate, which desc...

Open Graph Description: This PR does constant narrowing in the JIT optimizer for branches with _IS_OP comparisons with the constant singletons True, False, None. It introduces a new optimizer symbol, predicate, which desc...

X Description: This PR does constant narrowing in the JIT optimizer for branches with _IS_OP comparisons with the constant singletons True, False, None. It introduces a new optimizer symbol, predicate, which desc...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com

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:a13b96ee-1760-5488-eb42-fe04b7bb99b4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC6AC:3E7C4A:E50BDA:13380CA:696EB71C
html-safe-noncecd652a4c0403adb4e29173691f2c42de27a9ba9dc98c5bc1f28b2b6bf28588b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkFDOjNFN0M0QTpFNTBCREE6MTMzODBDQTo2OTZFQjcxQyIsInZpc2l0b3JfaWQiOiIyMjIxOTA2NDc4MDAxNzMxMzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd2340c239d52478f2a67684d4f63f7aa2d42529b180c77609ea5b2a1cd3b56e4
hovercard-subject-tagpull_request:3179114377
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/143895/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/61384a4533510df1cee6147d57496076ec3dd037f86eb7c3339a2acaa284a836/python/cpython/pull/143895
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/61384a4533510df1cee6147d57496076ec3dd037f86eb7c3339a2acaa284a836/python/cpython/pull/143895
og:image:altThis PR does constant narrowing in the JIT optimizer for branches with _IS_OP comparisons with the constant singletons True, False, None. It introduces a new optimizer symbol, predicate, which desc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamereidenong
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
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
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python/cpython/pull/143895#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143895
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143895
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/python/cpython/pull/143895
Reloadhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Reloadhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
python https://patch-diff.githubusercontent.com/python
cpythonhttps://patch-diff.githubusercontent.com/python/cpython
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython
Code https://patch-diff.githubusercontent.com/python/cpython
Issues 5k+ https://patch-diff.githubusercontent.com/python/cpython/issues
Pull requests 2.1k https://patch-diff.githubusercontent.com/python/cpython/pulls
Actions https://patch-diff.githubusercontent.com/python/cpython/actions
Projects 31 https://patch-diff.githubusercontent.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python/cpython/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Insights https://patch-diff.githubusercontent.com/python/cpython/pulse
Code https://patch-diff.githubusercontent.com/python/cpython
Issues https://patch-diff.githubusercontent.com/python/cpython/issues
Pull requests https://patch-diff.githubusercontent.com/python/cpython/pulls
Actions https://patch-diff.githubusercontent.com/python/cpython/actions
Projects https://patch-diff.githubusercontent.com/python/cpython/projects
Security https://patch-diff.githubusercontent.com/python/cpython/security
Insights https://patch-diff.githubusercontent.com/python/cpython/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895#issue-comment-box
reidenonghttps://patch-diff.githubusercontent.com/reidenong
python:mainhttps://patch-diff.githubusercontent.com/python/cpython/tree/main
reidenong:narrowing-to-constants-in-branches-with-ishttps://patch-diff.githubusercontent.com/reidenong/cpython/tree/narrowing-to-constants-in-branches-with-is
gh-130415: Narrowing to constants in branches involving is comparisons with a constant https://patch-diff.githubusercontent.com/python/cpython/pull/143895#top
reidenonghttps://patch-diff.githubusercontent.com/reidenong
python:mainhttps://patch-diff.githubusercontent.com/python/cpython/tree/main
reidenong:narrowing-to-constants-in-branches-with-ishttps://patch-diff.githubusercontent.com/reidenong/cpython/tree/narrowing-to-constants-in-branches-with-is
Conversation 28 https://patch-diff.githubusercontent.com/python/cpython/pull/143895
Commits 22 https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits
Checks 63 https://patch-diff.githubusercontent.com/python/cpython/pull/143895/checks
Files changed 7 https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python/cpython/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
Jan 15, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issue-3819549500
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Better constant narrowing in the JIT optimizer #130415https://github.com/python/cpython/issues/130415
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
reidenonghttps://patch-diff.githubusercontent.com/reidenong
January 13, 2026 22:04https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-181d096
https://patch-diff.githubusercontent.com/reidenong
Add failing regression testshttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/181d0965eca3888318933e6b719e171dc22bad47
181d096https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/181d0965eca3888318933e6b719e171dc22bad47
https://patch-diff.githubusercontent.com/reidenong
Refine failing regression testshttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/e30a46b43535a1ea7f915a8b57119dd964f0ad90
e30a46bhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/e30a46b43535a1ea7f915a8b57119dd964f0ad90
https://patch-diff.githubusercontent.com/reidenong
Add new predicate symbol and IS_OP constant narrowinghttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/eba715ed82ad8f91044eea64eba915c46023c819
eba715ehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/eba715ed82ad8f91044eea64eba915c46023c819
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
markshannonhttps://patch-diff.githubusercontent.com/markshannon
savannahostrowskihttps://patch-diff.githubusercontent.com/savannahostrowski
tomasr8https://patch-diff.githubusercontent.com/tomasr8
code ownershttps://patch-diff.githubusercontent.com/python/cpython/blob/c461aa99e2fabbaf5859c0a8a93e08306ee8115d/.github/CODEOWNERS#L296
January 15, 2026 22:58https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22081711931
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
Jan 15, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143895#ref-issue-2869613568
Better constant narrowing in the JIT optimizer #130415 https://patch-diff.githubusercontent.com/python/cpython/issues/130415
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
awaiting review https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jan 15, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22081713417
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
skip news https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jan 15, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22081892828
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
Jan 15, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22081893478
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
Jan 15, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3757321912
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/markshannon
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 16, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143895#pullrequestreview-3669955243
View reviewed changes https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819
markshannonhttps://patch-diff.githubusercontent.com/markshannon
https://patch-diff.githubusercontent.com/python/cpython/pull/143895#pullrequestreview-3669955243
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Include/internal/pycore_optimizer.hhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697803724
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Include/internal/pycore_optimizer_types.hhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-cd178e6d4ba8f18694ab0771162f51bd0ac2415e8d3ce0d43171b2e8c092bcfa
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697807103
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Python/optimizer_bytecodes.chttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697816052
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Python/optimizer_symbols.chttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-b28c00f0aab70992e604ed7c3e9cb4ca39779f33d5ff2c7777de5a044422f095
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697836541
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Python/optimizer_symbols.chttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-b28c00f0aab70992e604ed7c3e9cb4ca39779f33d5ff2c7777de5a044422f095
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697849759
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
awaiting changes https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
awaiting review https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22092124876
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3759280187
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
reidenonghttps://patch-diff.githubusercontent.com/reidenong
January 16, 2026 16:14https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-8834e12
https://patch-diff.githubusercontent.com/reidenong
Remove commenthttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/8834e120e9427a0599fb16f6e6be751b3463a2e2
8834e12https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/8834e120e9427a0599fb16f6e6be751b3463a2e2
https://patch-diff.githubusercontent.com/reidenong
Refactor predicate optimizer symbolhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d828f8c2c79f881e86d9d59f65c74af20be0f25a
d828f8chttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d828f8c2c79f881e86d9d59f65c74af20be0f25a
https://patch-diff.githubusercontent.com/reidenong
Remove unnecessary checks in sym_set_consthttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/24ac326c4442ceaa81dda1f6247dc30f48c843b8
24ac326https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/24ac326c4442ceaa81dda1f6247dc30f48c843b8
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
markshannonhttps://patch-diff.githubusercontent.com/markshannon
January 16, 2026 20:52https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22105195701
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3761806673
@markshannonhttps://github.com/markshannon
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3761886285
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/reidenong
Merge branch 'main' into narrowing-to-constants-in-branches-with-ishttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/8c95c5fe91e7710245da968263f2936fb4039e7b
8c95c5fhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/8c95c5fe91e7710245da968263f2936fb4039e7b
https://patch-diff.githubusercontent.com/apps/python-cla-bot
python-cla-bothttps://patch-diff.githubusercontent.com/apps/python-cla-bot
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3762065731
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://cla.python.org/
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3762076692
#142911https://github.com/python/cpython/pull/142911
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
Jan 16, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3762107197
#142911https://github.com/python/cpython/pull/142911
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
Jan 17, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3762369118
@reidenonghttps://github.com/reidenong
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
reidenonghttps://patch-diff.githubusercontent.com/reidenong
January 17, 2026 21:20https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-d0a3ef7
https://patch-diff.githubusercontent.com/reidenong
Merge branch 'main' into narrowing-to-constants-in-branches-with-ishttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d0a3ef74d795e06f77e4b5ed51ecd9e0d2168392
d0a3ef7https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d0a3ef74d795e06f77e4b5ed51ecd9e0d2168392
https://patch-diff.githubusercontent.com/reidenong
Add predicate symbol testshttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/33b892054d74d6f91af07679cc8465e1b6ffed76
33b8920https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/33b892054d74d6f91af07679cc8465e1b6ffed76
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
Jan 17, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3764331224
@Fidget-Spinnerhttps://github.com/Fidget-Spinner
@reidenonghttps://github.com/reidenong
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
Jan 17, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3764342642
@Fidget-Spinnerhttps://github.com/Fidget-Spinner
@reidenonghttps://github.com/reidenong
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinnerhttps://patch-diff.githubusercontent.com/Fidget-Spinner
Jan 17, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143895#pullrequestreview-3674569155
View reviewed changes https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/33b892054d74d6f91af07679cc8465e1b6ffed76
Lib/test/test_capi/test_opt.pyhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/33b892054d74d6f91af07679cc8465e1b6ffed76#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
reidenonghttps://patch-diff.githubusercontent.com/reidenong
January 18, 2026 16:25https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-e9548a2
https://patch-diff.githubusercontent.com/reidenong
Merge branch 'main' into narrowing-to-constants-in-branches-with-ishttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/e9548a216d630e63bea9ffdbc4c6c704e1a602bc
e9548a2https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/e9548a216d630e63bea9ffdbc4c6c704e1a602bc
https://patch-diff.githubusercontent.com/reidenong
Add optimizer symbol unit testshttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/156b0df1f1375bd99fa06650c85ca7e23ab817b6
156b0dfhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/156b0df1f1375bd99fa06650c85ca7e23ab817b6
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
Jan 18, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3765439175
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
awaiting change review https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
awaiting changes https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Jan 18, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22122832666
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
Jan 18, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3765439279
@markshannonhttps://github.com/markshannon
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/reidenong
Add narrowing to constant unit testhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/b84abc352683d1566d14904d0c7e77413508221b
b84abc3https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/b84abc352683d1566d14904d0c7e77413508221b
https://patch-diff.githubusercontent.com/markshannon
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22133324588
https://patch-diff.githubusercontent.com/reidenong
Merge branch 'main' into narrowing-to-constants-in-branches-with-ishttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/222c3a7e812f28b6c5c4d0d454e551f19cb56169
222c3a7https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/222c3a7e812f28b6c5c4d0d454e551f19cb56169
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3767610190
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
reidenonghttps://patch-diff.githubusercontent.com/reidenong
January 19, 2026 19:12https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-ceaf091
https://patch-diff.githubusercontent.com/reidenong
Remove unit testhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/ceaf09134bbaad0876c105d33d83100d651477ed
ceaf091https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/ceaf09134bbaad0876c105d33d83100d651477ed
https://patch-diff.githubusercontent.com/reidenong
Refine narrowing checkshttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/fb0f8dce258f639cae98d158206558300355912c
fb0f8dchttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/fb0f8dce258f639cae98d158206558300355912c
https://patch-diff.githubusercontent.com/reidenong
Update symbol lattice diagramhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/4601243789c28d68eeabf4518da02c3e7a384a3f
4601243https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/4601243789c28d68eeabf4518da02c3e7a384a3f
https://patch-diff.githubusercontent.com/markshannon
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 19, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143895#pullrequestreview-3677378840
View reviewed changes https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/4601243789c28d68eeabf4518da02c3e7a384a3f
markshannonhttps://patch-diff.githubusercontent.com/markshannon
https://patch-diff.githubusercontent.com/python/cpython/pull/143895#pullrequestreview-3677378840
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Include/internal/pycore_optimizer.hhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/b84abc352683d1566d14904d0c7e77413508221b#diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2704162241
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
Python/optimizer_symbols.chttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/222c3a7e812f28b6c5c4d0d454e551f19cb56169#diff-b28c00f0aab70992e604ed7c3e9cb4ca39779f33d5ff2c7777de5a044422f095
markshannonhttps://patch-diff.githubusercontent.com/markshannon
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2704174548
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
awaiting changes https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
awaiting change review https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22143623364
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3769413648
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
reidenonghttps://patch-diff.githubusercontent.com/reidenong
January 20, 2026 01:35https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-142eff4
https://patch-diff.githubusercontent.com/reidenong
Change to switch in predicate narrowinghttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/142eff4cb74aff85a658ffded3bf13068557151c
142eff4https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/142eff4cb74aff85a658ffded3bf13068557151c
https://patch-diff.githubusercontent.com/reidenong
Refactor invert in predicate symbol to kindhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/c6f4a6a2cfcefdbff9e709277abc2a8e1203b0df
c6f4a6ahttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/c6f4a6a2cfcefdbff9e709277abc2a8e1203b0df
https://patch-diff.githubusercontent.com/reidenong
Remove whitespacehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d0f799f8268ec89e264e970a2e9feb1110feaba2
d0f799fhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d0f799f8268ec89e264e970a2e9feb1110feaba2
https://patch-diff.githubusercontent.com/reidenong
Merge branch 'main' into narrowing-to-constants-in-branches-with-ishttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d98015f5ae9c153c65884187aa4f39211bbd77e7
d98015fhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d98015f5ae9c153c65884187aa4f39211bbd77e7
https://patch-diff.githubusercontent.com/reidenong
Fix typohttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/21997bf06d45b777e2fc7846d8dcbbfd6ce2aa36
21997bfhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/21997bf06d45b777e2fc7846d8dcbbfd6ce2aa36
https://patch-diff.githubusercontent.com/reidenong
Fix case defaulthttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/bfaa65bb8355397715dc057087287b981af6cfac
bfaa65bhttps://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/bfaa65bb8355397715dc057087287b981af6cfac
https://patch-diff.githubusercontent.com/reidenong
reidenonghttps://patch-diff.githubusercontent.com/reidenong
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3769671450
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
awaiting change review https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
awaiting changes https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22144975836
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
Jan 19, 2026https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3769671702
@markshannonhttps://github.com/markshannon
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/apps/bedevere-app
bedevere-apphttps://patch-diff.githubusercontent.com/apps/bedevere-app
markshannonhttps://patch-diff.githubusercontent.com/markshannon
January 19, 2026 18:37https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22144977023
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143895
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinner https://patch-diff.githubusercontent.com/Fidget-Spinner
https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/33b892054d74d6f91af07679cc8465e1b6ffed76
https://patch-diff.githubusercontent.com/tomasr8
tomasr8 https://patch-diff.githubusercontent.com/tomasr8
https://patch-diff.githubusercontent.com/savannahostrowski
savannahostrowski https://patch-diff.githubusercontent.com/savannahostrowski
https://patch-diff.githubusercontent.com/markshannon
markshannon https://patch-diff.githubusercontent.com/markshannon
https://patch-diff.githubusercontent.com/Fidget-Spinner
Fidget-Spinner https://patch-diff.githubusercontent.com/Fidget-Spinner
awaiting change review https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
skip news https://patch-diff.githubusercontent.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143895
https://patch-diff.githubusercontent.com/reidenong
https://patch-diff.githubusercontent.com/Fidget-Spinner
https://patch-diff.githubusercontent.com/markshannon
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.