| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b111d9f4-221b-50a0-0981-343bfc9de936 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E17A:2FD3E:18AACA2:20B439E:6A52C3AC |
| html-safe-nonce | 848e3b4ae8909fde7c6630268d16151ecd3bfedd45369b94f7a65d686d34a59f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTdBOjJGRDNFOjE4QUFDQTI6MjBCNDM5RTo2QTUyQzNBQyIsInZpc2l0b3JfaWQiOiIzOTk2ODY1Nzc2ODIwODYzOTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c9c329ba8e3389143c70424be9f661b6bc236723a6ca80603496b1455e63d8fa |
| hovercard-subject-tag | pull_request:3468051163 |
| 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/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/146641/files |
| twitter:image | https://avatars.githubusercontent.com/u/883786?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/883786?s=400&v=4 |
| og:image:alt | In this PR we add inplace binary operations for int type, similar to #146397. A complication compared to the float case is that the int operations can return small ints which should not be modified... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/146641/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146641%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2F146641%2Ffiles |
|
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/146641/files |
| Reload | https://github.com/python/cpython/pull/146641/files |
| Reload | https://github.com/python/cpython/pull/146641/files |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| 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.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
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 and quality
| 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 |
| Fidget-Spinner | https://github.com/Fidget-Spinner |
| python:main | https://github.com/python/cpython/tree/main |
| eendebakpt:int_int_inplace | https://github.com/eendebakpt/cpython/tree/int_int_inplace |
|
Conversation
16
| https://github.com/python/cpython/pull/146641 |
|
Commits
15
| https://github.com/python/cpython/pull/146641/commits |
|
Checks
79
| https://github.com/python/cpython/pull/146641/checks |
|
Files changed
| https://github.com/python/cpython/pull/146641/files |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
|
gh-146640: Optimize int operations by mutating uniquely-referenced operands in place (JIT only)
| https://github.com/python/cpython/pull/146641/files#top |
|
Show all changes
15 commits
| https://github.com/python/cpython/pull/146641/files |
|
befeded
Add inplace binary operations for type int-int
eendebakpt Mar 30, 2026
| https://github.com/python/cpython/pull/146641/commits/befeded4197b7aea397168fb20982b7382695c7d |
|
964bb34
rework
eendebakpt Mar 30, 2026
| https://github.com/python/cpython/pull/146641/commits/964bb34be583a9bd3cf7b97e2d4c97329ee04cc4 |
|
f33b452
refactor
eendebakpt Mar 30, 2026
| https://github.com/python/cpython/pull/146641/commits/f33b4528957ce5de55822c99a10b0cc56ddb27c4 |
|
654ae93
fix tag assignment
eendebakpt Mar 30, 2026
| https://github.com/python/cpython/pull/146641/commits/654ae93b1029536f3574ee8474aade0099461cb9 |
|
af5b4c9
fix result refs
eendebakpt Mar 30, 2026
| https://github.com/python/cpython/pull/146641/commits/af5b4c9eb62316ab5bd2486eec50ca5b8b45e529 |
|
9d13a23
review comments
eendebakpt Mar 31, 2026
| https://github.com/python/cpython/pull/146641/commits/9d13a232f91bb94306e17a149336da79e1610ec3 |
|
46b6cca
news entry
eendebakpt Mar 31, 2026
| https://github.com/python/cpython/pull/146641/commits/46b6ccabb8e6fa526abeb1c9373e3becf4f06b8d |
|
63c1317
fix
eendebakpt Mar 31, 2026
| https://github.com/python/cpython/pull/146641/commits/63c1317c6b8f2c6f1c0c0e00a171fdb2223fe5b2 |
|
4d6288b
move dup into macro
eendebakpt Mar 31, 2026
| https://github.com/python/cpython/pull/146641/commits/4d6288bf489abafe7f9239d9ef7443779c21d0b0 |
|
73b9a45
Merge branch 'main' into int_int_inplace
eendebakpt Mar 31, 2026
| https://github.com/python/cpython/pull/146641/commits/73b9a4573b7ec3fa46919af5621a4743b47c812e |
|
3fb1e6c
Apply suggestion from @eendebakpt
eendebakpt Mar 31, 2026
| https://github.com/python/cpython/pull/146641/commits/3fb1e6cbbc311efb268b59b3e3e1a052b95995d8 |
|
7710226
revert
eendebakpt Mar 31, 2026
| https://github.com/python/cpython/pull/146641/commits/7710226e82c354bdef504ccca7937a408a493937 |
|
60b81be
review comments
eendebakpt Apr 1, 2026
| https://github.com/python/cpython/pull/146641/commits/60b81be765e8a87c4ea9c68d998dd034b5bdfc29 |
|
e0bae62
Merge branch 'main' into int_int_inplace
eendebakpt Apr 1, 2026
| https://github.com/python/cpython/pull/146641/commits/e0bae62cf3cf9426528dbbe58ba089faf3ca537e |
|
76e0785
Apply suggestion from @eendebakpt
eendebakpt Apr 3, 2026
| https://github.com/python/cpython/pull/146641/commits/76e07851bd775d4b506e4309994c9cececc00b32 |
|
Clear filters
| https://github.com/python/cpython/pull/146641/files |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
|
pycore_uop_ids.h
| https://github.com/python/cpython/pull/146641/files#diff-2a420e4d0d58009249c0f73f7c822167b053bd51cb213b20179bd2aebfc66ff9 |
|
pycore_uop_metadata.h
| https://github.com/python/cpython/pull/146641/files#diff-55e65a72fa31e9b746e03076d2c74b716c0c1171663f36960b2339fcbfae9bab |
|
test_opt.py
| https://github.com/python/cpython/pull/146641/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439 |
|
2026-03-30-20-00-00.gh-issue-146306.C45609.rst
| https://github.com/python/cpython/pull/146641/files#diff-ddbb47dcb869b95314a2e440adc1e7d052a6f839504a3ae758c2654894732f3d |
|
bytecodes.c
| https://github.com/python/cpython/pull/146641/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
ceval_macros.h
| https://github.com/python/cpython/pull/146641/files#diff-45baf725df91ed7826458cda8a17c2b4a2e5296504de1ed6a1c5a9ebe6390a47 |
|
executor_cases.c.h
| https://github.com/python/cpython/pull/146641/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81 |
|
optimizer_bytecodes.c
| https://github.com/python/cpython/pull/146641/files#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64 |
|
optimizer_cases.c.h
| https://github.com/python/cpython/pull/146641/files#diff-ed4567b3e67709ec57bf4df91ef058cfcbe00d7da11cd2a75e38241fa1ca99d2 |
| Include/internal/pycore_uop_ids.h | https://github.com/python/cpython/pull/146641/files#diff-2a420e4d0d58009249c0f73f7c822167b053bd51cb213b20179bd2aebfc66ff9 |
|
View file
| https://github.com/eendebakpt/cpython/blob/76e07851bd775d4b506e4309994c9cececc00b32/Include/internal/pycore_uop_ids.h |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
| Include/internal/pycore_uop_metadata.h | https://github.com/python/cpython/pull/146641/files#diff-55e65a72fa31e9b746e03076d2c74b716c0c1171663f36960b2339fcbfae9bab |
|
View file
| https://github.com/eendebakpt/cpython/blob/76e07851bd775d4b506e4309994c9cececc00b32/Include/internal/pycore_uop_metadata.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
| Lib/test/test_capi/test_opt.py | https://github.com/python/cpython/pull/146641/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439 |
|
View file
| https://github.com/eendebakpt/cpython/blob/76e07851bd775d4b506e4309994c9cececc00b32/Lib/test/test_capi/test_opt.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/146641/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/146641/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439 |
|
| https://github.com/python/cpython/pull/146641/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439 |
| Misc/NEWS.d/next/Core_and_Builtins/2026-03-30-20-00-00.gh-issue-146306.C45609.rst | https://github.com/python/cpython/pull/146641/files#diff-ddbb47dcb869b95314a2e440adc1e7d052a6f839504a3ae758c2654894732f3d |
|
View file
| https://github.com/eendebakpt/cpython/blob/76e07851bd775d4b506e4309994c9cececc00b32/Misc/NEWS.d/next/Core_and_Builtins/2026-03-30-20-00-00.gh-issue-146306.C45609.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/146641/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L225 |
| Python/bytecodes.c | https://github.com/python/cpython/pull/146641/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
View file
| https://github.com/eendebakpt/cpython/blob/76e07851bd775d4b506e4309994c9cececc00b32/Python/bytecodes.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/146641/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/146641/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
| Fidget-Spinner | https://github.com/Fidget-Spinner |
| Apr 3, 2026 | https://github.com/python/cpython/pull/146641/files#r3033108593 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
| eendebakpt | https://github.com/eendebakpt |
| Apr 3, 2026 | https://github.com/python/cpython/pull/146641/files#r3033236675 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
| Fidget-Spinner | https://github.com/Fidget-Spinner |
| Apr 3, 2026 | https://github.com/python/cpython/pull/146641/files#r3033272060 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
|
| https://github.com/python/cpython/pull/146641/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
| Please reload this page | https://github.com/python/cpython/pull/146641/files |
|
| 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 |