| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:a13b96ee-1760-5488-eb42-fe04b7bb99b4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C6AC:3E7C4A:E50BDA:13380CA:696EB71C |
| html-safe-nonce | cd652a4c0403adb4e29173691f2c42de27a9ba9dc98c5bc1f28b2b6bf28588b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkFDOjNFN0M0QTpFNTBCREE6MTMzODBDQTo2OTZFQjcxQyIsInZpc2l0b3JfaWQiOiIyMjIxOTA2NDc4MDAxNzMxMzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d2340c239d52478f2a67684d4f63f7aa2d42529b180c77609ea5b2a1cd3b56e4 |
| hovercard-subject-tag | pull_request:3179114377 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/143895/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/61384a4533510df1cee6147d57496076ec3dd037f86eb7c3339a2acaa284a836/python/cpython/pull/143895 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61384a4533510df1cee6147d57496076ec3dd037f86eb7c3339a2acaa284a836/python/cpython/pull/143895 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | reidenong |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Reload | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Reload | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
|
python
| https://patch-diff.githubusercontent.com/python |
| cpython | https://patch-diff.githubusercontent.com/python/cpython |
| Please reload this page | https://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 page | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| Jump to bottom | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issue-comment-box |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| python:main | https://patch-diff.githubusercontent.com/python/cpython/tree/main |
| reidenong:narrowing-to-constants-in-branches-with-is | https://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 |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| python:main | https://patch-diff.githubusercontent.com/python/cpython/tree/main |
| reidenong:narrowing-to-constants-in-branches-with-is | https://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 |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| Jan 15, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issue-3819549500 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Better constant narrowing in the JIT optimizer #130415 | https://github.com/python/cpython/issues/130415 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| January 13, 2026 22:04 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-181d096 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Add failing regression tests | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/181d0965eca3888318933e6b719e171dc22bad47 |
| 181d096 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/181d0965eca3888318933e6b719e171dc22bad47 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Refine failing regression tests | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/e30a46b43535a1ea7f915a8b57119dd964f0ad90 |
| e30a46b | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/e30a46b43535a1ea7f915a8b57119dd964f0ad90 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Add new predicate symbol and IS_OP constant narrowing | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/eba715ed82ad8f91044eea64eba915c46023c819 |
| eba715e | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/eba715ed82ad8f91044eea64eba915c46023c819 |
| https://patch-diff.githubusercontent.com/reidenong |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| Fidget-Spinner | https://patch-diff.githubusercontent.com/Fidget-Spinner |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| savannahostrowski | https://patch-diff.githubusercontent.com/savannahostrowski |
| tomasr8 | https://patch-diff.githubusercontent.com/tomasr8 |
| code owners | https://patch-diff.githubusercontent.com/python/cpython/blob/c461aa99e2fabbaf5859c0a8a93e08306ee8115d/.github/CODEOWNERS#L296 |
| January 15, 2026 22:58 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22081711931 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://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-app | https://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, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22081713417 |
| https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Fidget-Spinner | https://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, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22081892828 |
| https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Fidget-Spinner | https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Jan 15, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22081893478 |
| https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Fidget-Spinner | https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Jan 15, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3757321912 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/markshannon |
| markshannon | https://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 |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| https://patch-diff.githubusercontent.com/python/cpython/pull/143895#pullrequestreview-3669955243 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Include/internal/pycore_optimizer.h | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697803724 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Include/internal/pycore_optimizer_types.h | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-cd178e6d4ba8f18694ab0771162f51bd0ac2415e8d3ce0d43171b2e8c092bcfa |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697807103 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Python/optimizer_bytecodes.c | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64 |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697816052 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Python/optimizer_symbols.c | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-b28c00f0aab70992e604ed7c3e9cb4ca39779f33d5ff2c7777de5a044422f095 |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697836541 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Python/optimizer_symbols.c | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/eba715ed82ad8f91044eea64eba915c46023c819#diff-b28c00f0aab70992e604ed7c3e9cb4ca39779f33d5ff2c7777de5a044422f095 |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2697849759 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://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, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22092124876 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://patch-diff.githubusercontent.com/apps/bedevere-app |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3759280187 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| January 16, 2026 16:14 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-8834e12 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Remove comment | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/8834e120e9427a0599fb16f6e6be751b3463a2e2 |
| 8834e12 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/8834e120e9427a0599fb16f6e6be751b3463a2e2 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Refactor predicate optimizer symbol | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d828f8c2c79f881e86d9d59f65c74af20be0f25a |
| d828f8c | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d828f8c2c79f881e86d9d59f65c74af20be0f25a |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Remove unnecessary checks in sym_set_const | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/24ac326c4442ceaa81dda1f6247dc30f48c843b8 |
| 24ac326 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/24ac326c4442ceaa81dda1f6247dc30f48c843b8 |
| https://patch-diff.githubusercontent.com/reidenong |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| January 16, 2026 20:52 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22105195701 |
| https://patch-diff.githubusercontent.com/reidenong |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3761806673 |
| @markshannon | https://github.com/markshannon |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Fidget-Spinner | https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3761886285 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Merge branch 'main' into narrowing-to-constants-in-branches-with-is | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/8c95c5fe91e7710245da968263f2936fb4039e7b |
| 8c95c5f | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/8c95c5fe91e7710245da968263f2936fb4039e7b |
| https://patch-diff.githubusercontent.com/apps/python-cla-bot |
| python-cla-bot | https://patch-diff.githubusercontent.com/apps/python-cla-bot |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3762065731 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://cla.python.org/ |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Fidget-Spinner | https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3762076692 |
| #142911 | https://github.com/python/cpython/pull/142911 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/reidenong |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| Jan 16, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3762107197 |
| #142911 | https://github.com/python/cpython/pull/142911 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Fidget-Spinner | https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Jan 17, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3762369118 |
| @reidenong | https://github.com/reidenong |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| January 17, 2026 21:20 | https://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-is | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d0a3ef74d795e06f77e4b5ed51ecd9e0d2168392 |
| d0a3ef7 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d0a3ef74d795e06f77e4b5ed51ecd9e0d2168392 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Add predicate symbol tests | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/33b892054d74d6f91af07679cc8465e1b6ffed76 |
| 33b8920 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/33b892054d74d6f91af07679cc8465e1b6ffed76 |
| https://patch-diff.githubusercontent.com/reidenong |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| Jan 17, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3764331224 |
| @Fidget-Spinner | https://github.com/Fidget-Spinner |
| @reidenong | https://github.com/reidenong |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Fidget-Spinner | https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Jan 17, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3764342642 |
| @Fidget-Spinner | https://github.com/Fidget-Spinner |
| @reidenong | https://github.com/reidenong |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/Fidget-Spinner |
| Fidget-Spinner | https://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.py | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/33b892054d74d6f91af07679cc8465e1b6ffed76#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| January 18, 2026 16:25 | https://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-is | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/e9548a216d630e63bea9ffdbc4c6c704e1a602bc |
| e9548a2 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/e9548a216d630e63bea9ffdbc4c6c704e1a602bc |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Add optimizer symbol unit tests | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/156b0df1f1375bd99fa06650c85ca7e23ab817b6 |
| 156b0df | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/156b0df1f1375bd99fa06650c85ca7e23ab817b6 |
| https://patch-diff.githubusercontent.com/reidenong |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| Jan 18, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3765439175 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://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, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22122832666 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://patch-diff.githubusercontent.com/apps/bedevere-app |
| Jan 18, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3765439279 |
| @markshannon | https://github.com/markshannon |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Add narrowing to constant unit test | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/b84abc352683d1566d14904d0c7e77413508221b |
| b84abc3 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/b84abc352683d1566d14904d0c7e77413508221b |
| https://patch-diff.githubusercontent.com/markshannon |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| Jan 19, 2026 | https://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-is | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/222c3a7e812f28b6c5c4d0d454e551f19cb56169 |
| 222c3a7 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/222c3a7e812f28b6c5c4d0d454e551f19cb56169 |
| https://patch-diff.githubusercontent.com/reidenong |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| Jan 19, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3767610190 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| January 19, 2026 19:12 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-ceaf091 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Remove unit test | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/ceaf09134bbaad0876c105d33d83100d651477ed |
| ceaf091 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/ceaf09134bbaad0876c105d33d83100d651477ed |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Refine narrowing checks | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/fb0f8dce258f639cae98d158206558300355912c |
| fb0f8dc | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/fb0f8dce258f639cae98d158206558300355912c |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Update symbol lattice diagram | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/4601243789c28d68eeabf4518da02c3e7a384a3f |
| 4601243 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/4601243789c28d68eeabf4518da02c3e7a384a3f |
| https://patch-diff.githubusercontent.com/markshannon |
| markshannon | https://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 |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| https://patch-diff.githubusercontent.com/python/cpython/pull/143895#pullrequestreview-3677378840 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Include/internal/pycore_optimizer.h | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/b84abc352683d1566d14904d0c7e77413508221b#diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| Jan 19, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2704162241 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| Python/optimizer_symbols.c | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/files/222c3a7e812f28b6c5c4d0d454e551f19cb56169#diff-b28c00f0aab70992e604ed7c3e9cb4ca39779f33d5ff2c7777de5a044422f095 |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| Jan 19, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#discussion_r2704174548 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://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, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22143623364 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://patch-diff.githubusercontent.com/apps/bedevere-app |
| Jan 19, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3769413648 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| January 20, 2026 01:35 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#commits-pushed-142eff4 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Change to switch in predicate narrowing | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/142eff4cb74aff85a658ffded3bf13068557151c |
| 142eff4 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/142eff4cb74aff85a658ffded3bf13068557151c |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Refactor invert in predicate symbol to kind | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/c6f4a6a2cfcefdbff9e709277abc2a8e1203b0df |
| c6f4a6a | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/c6f4a6a2cfcefdbff9e709277abc2a8e1203b0df |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Remove whitespace | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d0f799f8268ec89e264e970a2e9feb1110feaba2 |
| d0f799f | https://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-is | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d98015f5ae9c153c65884187aa4f39211bbd77e7 |
| d98015f | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/d98015f5ae9c153c65884187aa4f39211bbd77e7 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Fix typo | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/21997bf06d45b777e2fc7846d8dcbbfd6ce2aa36 |
| 21997bf | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/21997bf06d45b777e2fc7846d8dcbbfd6ce2aa36 |
|
| https://patch-diff.githubusercontent.com/reidenong |
| Fix case default | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/bfaa65bb8355397715dc057087287b981af6cfac |
| bfaa65b | https://patch-diff.githubusercontent.com/python/cpython/pull/143895/commits/bfaa65bb8355397715dc057087287b981af6cfac |
| https://patch-diff.githubusercontent.com/reidenong |
| reidenong | https://patch-diff.githubusercontent.com/reidenong |
| Jan 19, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3769671450 |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://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, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22144975836 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://patch-diff.githubusercontent.com/apps/bedevere-app |
| Jan 19, 2026 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#issuecomment-3769671702 |
| @markshannon | https://github.com/markshannon |
| Please reload this page | https://patch-diff.githubusercontent.com/python/cpython/pull/143895 |
| https://patch-diff.githubusercontent.com/apps/bedevere-app |
| bedevere-app | https://patch-diff.githubusercontent.com/apps/bedevere-app |
| markshannon | https://patch-diff.githubusercontent.com/markshannon |
| January 19, 2026 18:37 | https://patch-diff.githubusercontent.com/python/cpython/pull/143895#event-22144977023 |
| Sign up for free | https://patch-diff.githubusercontent.com/join?source=comment-repo |
| Sign in to comment | https://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 page | https://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 |
| 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 |