| route-pattern | /:user_id/:repository/pull/*id(.:format) |
| route-controller | pull_requests |
| route-action | show |
| fetch-nonce | v2:2fa2377a-99ee-0cf7-5291-f8b4dfba50ee |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8694:2BAECB:8D391F:C538A5:696F3E32 |
| html-safe-nonce | 58bcf7d43ff74a49e1359d19b4f4ba1ec34e0c72dab6285b9a3fb1428979e3a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Njk0OjJCQUVDQjo4RDM5MUY6QzUzOEE1OjY5NkYzRTMyIiwidmlzaXRvcl9pZCI6IjczNjk2NTg2NTE4MTY5Njc3MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c93fae451fb4174912f1bbbc7be43c92ca748927a14a41b0d6a8d707770a8f72 |
| hovercard-subject-tag | pull_request:2405655530 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/131489 |
| twitter:image | https://opengraph.githubassets.com/8bfc23d40c725ab698a9687a275d00ee202bd780e5c6dc292e6da086720e15ce/python/cpython/pull/131489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8bfc23d40c725ab698a9687a275d00ee202bd780e5c6dc292e6da086720e15ce/python/cpython/pull/131489 |
| og:image:alt | Issue: Better constant narrowing in the JIT optimizer #130415 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | savannahostrowski |
| 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://github.com/python/cpython/pull/131489#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F131489 |
| 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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F131489 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/131489 |
| Reload | https://github.com/python/cpython/pull/131489 |
| Reload | https://github.com/python/cpython/pull/131489 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.2k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| Jump to bottom | https://github.com/python/cpython/pull/131489#issue-comment-box |
| brandtbucher | https://github.com/brandtbucher |
| python:main | https://github.com/python/cpython/tree/main |
| savannahostrowski:pop_2 | https://github.com/savannahostrowski/cpython/tree/pop_2 |
|
GH-130415: Optimize constant comparison in JIT builds
| https://github.com/python/cpython/pull/131489#top |
| brandtbucher | https://github.com/brandtbucher |
| python:main | https://github.com/python/cpython/tree/main |
| savannahostrowski:pop_2 | https://github.com/savannahostrowski/cpython/tree/pop_2 |
|
Conversation
14
| https://github.com/python/cpython/pull/131489 |
|
Commits
11
| https://github.com/python/cpython/pull/131489/commits |
|
Checks
66
| https://github.com/python/cpython/pull/131489/checks |
|
Files changed
| https://github.com/python/cpython/pull/131489/files |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
|
| https://github.com/savannahostrowski |
| savannahostrowski | https://github.com/savannahostrowski |
| Mar 20, 2025 | https://github.com/python/cpython/pull/131489#issue-2933934020 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| Better constant narrowing in the JIT optimizer #130415 | https://github.com/python/cpython/issues/130415 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| savannahostrowski | https://github.com/savannahostrowski |
| March 17, 2025 21:13 | https://github.com/python/cpython/pull/131489#commits-pushed-2a92ba9 |
|
| https://github.com/savannahostrowski |
| Pop two load const inline borrow | https://github.com/python/cpython/pull/131489/commits/2a92ba9f12ddfc741f194c8e2392097f8a3a57e7 |
| 2a92ba9 | https://github.com/python/cpython/pull/131489/commits/2a92ba9f12ddfc741f194c8e2392097f8a3a57e7 |
|
| https://github.com/savannahostrowski |
| Compute result and use rich compare | https://github.com/python/cpython/pull/131489/commits/fee3937b9b1e2e1cc06656f368c0ff2083ddf185 |
| fee3937 | https://github.com/python/cpython/pull/131489/commits/fee3937b9b1e2e1cc06656f368c0ff2083ddf185 |
|
| https://github.com/savannahostrowski |
| Merge main | https://github.com/python/cpython/pull/131489/commits/90fdaf8272d5b9a0d6f5b9c4eae62f7b31b9c277 |
| 90fdaf8 | https://github.com/python/cpython/pull/131489/commits/90fdaf8272d5b9a0d6f5b9c4eae62f7b31b9c277 |
|
| https://github.com/savannahostrowski |
| Remove deepfreeze | https://github.com/python/cpython/pull/131489/commits/1a47c8dd16cc3240793846e07903a8185343ff9a |
| 1a47c8d | https://github.com/python/cpython/pull/131489/commits/1a47c8dd16cc3240793846e07903a8185343ff9a |
|
| https://github.com/savannahostrowski |
| add test for optimization | https://github.com/python/cpython/pull/131489/commits/697323b4bedfd4bb65f626846144d257b7420c59 |
| 697323b | https://github.com/python/cpython/pull/131489/commits/697323b4bedfd4bb65f626846144d257b7420c59 |
|
| https://github.com/savannahostrowski |
| fix assert | https://github.com/python/cpython/pull/131489/commits/6c98c24075f2557a36aa4c315f5a23b5d8708eb4 |
| 6c98c24 | https://github.com/python/cpython/pull/131489/commits/6c98c24075f2557a36aa4c315f5a23b5d8708eb4 |
|
| https://github.com/savannahostrowski |
| remove extra newline | https://github.com/python/cpython/pull/131489/commits/5cf0e166c86417cf4d401addf52a15777c35a8a1 |
| 5cf0e16 | https://github.com/python/cpython/pull/131489/commits/5cf0e166c86417cf4d401addf52a15777c35a8a1 |
| https://github.com/savannahostrowski |
| savannahostrowski | https://github.com/savannahostrowski |
| brandtbucher | https://github.com/brandtbucher |
| March 20, 2025 03:42 | https://github.com/python/cpython/pull/131489#event-16889750672 |
| https://github.com/savannahostrowski |
| savannahostrowski | https://github.com/savannahostrowski |
| Fidget-Spinner | https://github.com/Fidget-Spinner |
| markshannon | https://github.com/markshannon |
| code owners | https://github.com/python/cpython/blob/f141e8ec2a2e8d21fc08c1f56ef40104c7a7fad2/.github/CODEOWNERS#L47 |
| March 20, 2025 03:42 | https://github.com/python/cpython/pull/131489#event-16889750750 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Mar 20, 2025 | https://github.com/python/cpython/pull/131489#event-16889751086 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Mar 20, 2025
| https://github.com/python/cpython/pull/131489#ref-issue-2869613568 |
|
Better constant narrowing in the JIT optimizer
#130415
| https://github.com/python/cpython/issues/130415 |
|
| https://github.com/apps/blurb-it |
| 📜🤖 Added by blurb_it. | https://github.com/python/cpython/pull/131489/commits/69d14ef8ed725813ad7ca6d2bc0505e292019bf9 |
| 69d14ef | https://github.com/python/cpython/pull/131489/commits/69d14ef8ed725813ad7ca6d2bc0505e292019bf9 |
| https://github.com/savannahostrowski |
| savannahostrowski | https://github.com/savannahostrowski |
| Mar 20, 2025 | https://github.com/python/cpython/pull/131489#event-16889782011 |
| https://github.com/brandtbucher |
| brandtbucher | https://github.com/brandtbucher |
|
Mar 20, 2025
| https://github.com/python/cpython/pull/131489#pullrequestreview-2701106171 |
|
View reviewed changes
| https://github.com/python/cpython/pull/131489/files/69d14ef8ed725813ad7ca6d2bc0505e292019bf9 |
| brandtbucher | https://github.com/brandtbucher |
| https://github.com/python/cpython/pull/131489#pullrequestreview-2701106171 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| Lib/test/test_capi/test_opt.py | https://github.com/python/cpython/pull/131489/files/69d14ef8ed725813ad7ca6d2bc0505e292019bf9#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| Python/bytecodes.c | https://github.com/python/cpython/pull/131489/files/69d14ef8ed725813ad7ca6d2bc0505e292019bf9#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| Python/optimizer_bytecodes.c | https://github.com/python/cpython/pull/131489/files/69d14ef8ed725813ad7ca6d2bc0505e292019bf9#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting changes
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22 |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Mar 20, 2025 | https://github.com/python/cpython/pull/131489#event-16889869640 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
| Mar 20, 2025 | https://github.com/python/cpython/pull/131489#issuecomment-2739067335 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| https://github.com/brandtbucher |
| brandtbucher | https://github.com/brandtbucher |
| Mar 20, 2025 | https://github.com/python/cpython/pull/131489#issuecomment-2739069190 |
| GH-131488 | https://github.com/python/cpython/issues/131488 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
|
| https://github.com/savannahostrowski |
|
| https://github.com/brandtbucher |
| Apply suggestions from code review | https://github.com/python/cpython/pull/131489/commits/e40e580d6163b0fd75d359c822f90fda72d70835 |
| e40e580 | https://github.com/python/cpython/pull/131489/commits/e40e580d6163b0fd75d359c822f90fda72d70835 |
| https://github.com/brandtbucher |
| brandtbucher | https://github.com/brandtbucher |
|
Mar 20, 2025
| https://github.com/python/cpython/pull/131489#pullrequestreview-2703783988 |
|
View reviewed changes
| https://github.com/python/cpython/pull/131489/files/e40e580d6163b0fd75d359c822f90fda72d70835 |
| brandtbucher | https://github.com/brandtbucher |
| https://github.com/python/cpython/pull/131489#pullrequestreview-2703783988 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| Lib/test/test_capi/test_opt.py | https://github.com/python/cpython/pull/131489/files/e40e580d6163b0fd75d359c822f90fda72d70835#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| Python/optimizer_bytecodes.c | https://github.com/python/cpython/pull/131489/files/e40e580d6163b0fd75d359c822f90fda72d70835#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| savannahostrowski | https://github.com/savannahostrowski |
| March 20, 2025 19:43 | https://github.com/python/cpython/pull/131489#commits-pushed-7621359 |
|
| https://github.com/savannahostrowski |
| Fix indentation, remove extra check | https://github.com/python/cpython/pull/131489/commits/76213594a8769bf4ee37114dd3f2b178346e0a83 |
| 7621359 | https://github.com/python/cpython/pull/131489/commits/76213594a8769bf4ee37114dd3f2b178346e0a83 |
|
| https://github.com/savannahostrowski |
| Merge branch 'main' into pop_2 | https://github.com/python/cpython/pull/131489/commits/ebf9119f37fec3967fe1b0cf87d277115e74daa2 |
| ebf9119 | https://github.com/python/cpython/pull/131489/commits/ebf9119f37fec3967fe1b0cf87d277115e74daa2 |
| https://github.com/brandtbucher |
| brandtbucher | https://github.com/brandtbucher |
|
Mar 21, 2025
| https://github.com/python/cpython/pull/131489#pullrequestreview-2706841682 |
|
View reviewed changes
| https://github.com/python/cpython/pull/131489/files/ebf9119f37fec3967fe1b0cf87d277115e74daa2 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
|
awaiting changes
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22 |
| Mar 21, 2025 | https://github.com/python/cpython/pull/131489#event-16933215815 |
| https://github.com/brandtbucher |
| brandtbucher | https://github.com/brandtbucher |
| Mar 21, 2025 | https://github.com/python/cpython/pull/131489#issuecomment-2744132970 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| https://github.com/brandtbucher |
| brandtbucher | https://github.com/brandtbucher |
| b92ee14 | https://github.com/python/cpython/commit/b92ee14b80cc8898f799aa8120ec99dd0c882339 |
| Mar 21, 2025 | https://github.com/python/cpython/pull/131489#event-16933383822 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Mar 21, 2025 | https://github.com/python/cpython/pull/131489#event-16933384507 |
| https://github.com/brandtbucher |
| brandtbucher | https://github.com/brandtbucher |
| Mar 21, 2025 | https://github.com/python/cpython/pull/131489#issuecomment-2744182304 |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
| https://github.com/brianschubert |
| brianschubert | https://github.com/brianschubert |
|
Mar 21, 2025
| https://github.com/python/cpython/pull/131489#ref-pullrequest-2939438835 |
|
Fix indentation in optimizer test
#131569
| https://github.com/python/cpython/pull/131569 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F131489 |
|
| https://github.com/brandtbucher |
|
brandtbucher
| https://github.com/brandtbucher |
|
| https://github.com/python/cpython/pull/131489/files/ebf9119f37fec3967fe1b0cf87d277115e74daa2 |
|
| https://github.com/Fidget-Spinner |
|
Fidget-Spinner
| https://github.com/Fidget-Spinner |
|
| https://github.com/markshannon |
|
markshannon
| https://github.com/markshannon |
| Please reload this page | https://github.com/python/cpython/pull/131489 |
|
| https://github.com/savannahostrowski |
|
| https://github.com/brandtbucher |
|
| 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 |