| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d8e48b97-c657-5b88-a156-56ceaef2fd58 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A900:1B53EB:47282:5EE27:6A526913 |
| html-safe-nonce | 8e43cb0f479df13cca2e62cdbb8f1cb9fc7943b2a488c56efb7c46c4eb7ed9f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTAwOjFCNTNFQjo0NzI4Mjo1RUUyNzo2QTUyNjkxMyIsInZpc2l0b3JfaWQiOiI0NDU2OTM3NDk4MTMyNzY5MDQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fef9a6cadb9a734f39fb406aa9ddab8d8ee0380c9560999a5f88e3656a3e48bd |
| hovercard-subject-tag | pull_request:822196816 |
| 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/30594/files |
| twitter:image | https://avatars.githubusercontent.com/u/40968415?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40968415?s=400&v=4 |
| og:image:alt | This modifies the existing int and float specializations to mutate the LHS operand in-place when possible. It also unifies the implementations of all of these operations.
https://bugs.python.org/i... |
| 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/30594/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30594%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%2F30594%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/30594/files |
| Reload | https://github.com/python/cpython/pull/30594/files |
| Reload | https://github.com/python/cpython/pull/30594/files |
| Please reload this page | https://github.com/python/cpython/pull/30594/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/30594/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 |
| brandtbucher | https://github.com/brandtbucher |
| python:main | https://github.com/python/cpython/tree/main |
| brandtbucher:inplace-ops | https://github.com/brandtbucher/cpython/tree/inplace-ops |
|
Conversation
35
| https://github.com/python/cpython/pull/30594 |
|
Commits
18
| https://github.com/python/cpython/pull/30594/commits |
|
Checks
0
| https://github.com/python/cpython/pull/30594/checks |
|
Files changed
| https://github.com/python/cpython/pull/30594/files |
| Please reload this page | https://github.com/python/cpython/pull/30594/files |
|
bpo-46372: Try to mutate the LHS during fast float ops
| https://github.com/python/cpython/pull/30594/files#top |
|
Show all changes
18 commits
| https://github.com/python/cpython/pull/30594/files |
|
cf64e13
Perform specialized ops in-place when possible
brandtbucher Jan 11, 2022
| https://github.com/python/cpython/pull/30594/commits/cf64e13f20a9598db72c19a6479aab24f77a52eb |
|
5e49a13
Break out common logic
brandtbucher Jan 12, 2022
| https://github.com/python/cpython/pull/30594/commits/5e49a13266710b0a947286cd2ede26a33927ac39 |
|
f7187d9
Clean things up a bit
brandtbucher Jan 12, 2022
| https://github.com/python/cpython/pull/30594/commits/f7187d9133fa8a6e178b37a03da0ebdbca26792f |
|
dd19cec
Clean up macro
brandtbucher Jan 12, 2022
| https://github.com/python/cpython/pull/30594/commits/dd19cec5823bf21da799dc4dc5f292f279648aa8 |
|
78cc5c4
Simplify the "small" int case
brandtbucher Jan 13, 2022
| https://github.com/python/cpython/pull/30594/commits/78cc5c44070fa7e524f7482630e1c1efd3e12cc0 |
|
218b10b
blurb add
brandtbucher Jan 14, 2022
| https://github.com/python/cpython/pull/30594/commits/218b10b3f03f87d71449d9f616a88bc7a3f4b3a5 |
|
505fd8e
Catch up with main
brandtbucher Jan 18, 2022
| https://github.com/python/cpython/pull/30594/commits/505fd8eb6f80f9d77be7c8fbcd56c7aad912adf1 |
|
6b4cc6d
Apply first round of code revew comments
brandtbucher Jan 18, 2022
| https://github.com/python/cpython/pull/30594/commits/6b4cc6dabf5e0350ea62aa874e625add8da2eca3 |
|
f21a813
Fix 32-bit Windows errrors
brandtbucher Jan 19, 2022
| https://github.com/python/cpython/pull/30594/commits/f21a813316eeb7e51d169c98bbfff16c71dc10db |
|
d6a69d5
Perform the inplace checks when specializing
brandtbucher Jan 19, 2022
| https://github.com/python/cpython/pull/30594/commits/d6a69d583422a7e9b38d6e5b893572b22c9245fb |
|
f11cf6d
Remove duplicate code
brandtbucher Jan 19, 2022
| https://github.com/python/cpython/pull/30594/commits/f11cf6d27888aa2fe8ce2e30cb95a54bcc41be17 |
|
b6f041a
Simplify things further
brandtbucher Jan 19, 2022
| https://github.com/python/cpython/pull/30594/commits/b6f041ace69641d70dddabb86508ba47f55efc93 |
|
eb586b1
Remove int and refcount == 2 optimizations
brandtbucher Jan 19, 2022
| https://github.com/python/cpython/pull/30594/commits/eb586b1d07fe129ed5845f8753d461afd35f0c4b |
|
def9c64
Catch up with main
brandtbucher Jan 21, 2022
| https://github.com/python/cpython/pull/30594/commits/def9c64dd9f48570fbfe35a8372979f5458dccd5 |
|
6e262ba
Revert int changes
brandtbucher Jan 24, 2022
| https://github.com/python/cpython/pull/30594/commits/6e262ba3d35922b2b4226ba0ace8559a706c8564 |
|
37fab55
Catch up with main
brandtbucher Jan 28, 2022
| https://github.com/python/cpython/pull/30594/commits/37fab55bd8f8fcd679d2fa9cc9b481b0ada03e56 |
|
04f186c
Add the "adaptive superinstructions" back
brandtbucher Feb 1, 2022
| https://github.com/python/cpython/pull/30594/commits/04f186ce7f8390d7053014fd20f97243d4c6b595 |
|
e0d0042
Catch up with main
brandtbucher Feb 1, 2022
| https://github.com/python/cpython/pull/30594/commits/e0d004266a2bd8c576abe57fe922637eb09bf334 |
|
Clear filters
| https://github.com/python/cpython/pull/30594/files |
| Please reload this page | https://github.com/python/cpython/pull/30594/files |
| Please reload this page | https://github.com/python/cpython/pull/30594/files |
|
opcode.h
| https://github.com/python/cpython/pull/30594/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed |
|
opcode.py
| https://github.com/python/cpython/pull/30594/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb |
|
2022-01-13-22-50-49.bpo-46372.b00Vdn.rst
| https://github.com/python/cpython/pull/30594/files#diff-5a48227d71da8a6969d7aaf96811959a8388b22dbbf9a276089b79054e872266 |
|
ceval.c
| https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
opcode_targets.h
| https://github.com/python/cpython/pull/30594/files#diff-d3363a4083b77b9157d0bf07c2e87f3d3464a8b4360d5d23b07bbb23061f007a |
|
specialize.c
| https://github.com/python/cpython/pull/30594/files#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2 |
| Include/opcode.h | https://github.com/python/cpython/pull/30594/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed |
|
View file
| https://github.com/brandtbucher/cpython/blob/e0d004266a2bd8c576abe57fe922637eb09bf334/Include/opcode.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/30594/files |
| Lib/opcode.py | https://github.com/python/cpython/pull/30594/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb |
|
View file
| https://github.com/brandtbucher/cpython/blob/e0d004266a2bd8c576abe57fe922637eb09bf334/Lib/opcode.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30594/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30594/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb |
|
| https://github.com/python/cpython/pull/30594/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb |
| Misc/NEWS.d/next/Core and Builtins/2022-01-13-22-50-49.bpo-46372.b00Vdn.rst | https://github.com/python/cpython/pull/30594/files#diff-5a48227d71da8a6969d7aaf96811959a8388b22dbbf9a276089b79054e872266 |
|
View file
| https://github.com/brandtbucher/cpython/blob/e0d004266a2bd8c576abe57fe922637eb09bf334/Misc/NEWS.d/next/Core%20and%20Builtins/2022-01-13-22-50-49.bpo-46372.b00Vdn.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30594/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L226 |
| Python/ceval.c | https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
View file
| https://github.com/brandtbucher/cpython/blob/e0d004266a2bd8c576abe57fe922637eb09bf334/Python/ceval.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30594/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
| markshannon | https://github.com/markshannon |
| Feb 10, 2022 | https://github.com/python/cpython/pull/30594/files#r803896705 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/30594/files |
| brandtbucher | https://github.com/brandtbucher |
| Feb 11, 2022 | https://github.com/python/cpython/pull/30594/files#r804309219 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/30594/files |
|
| https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
| https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
| https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
| https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
| https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
| https://github.com/python/cpython/pull/30594/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
| Python/opcode_targets.h | https://github.com/python/cpython/pull/30594/files#diff-d3363a4083b77b9157d0bf07c2e87f3d3464a8b4360d5d23b07bbb23061f007a |
|
View file
| https://github.com/brandtbucher/cpython/blob/e0d004266a2bd8c576abe57fe922637eb09bf334/Python/opcode_targets.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/30594/files |
| Please reload this page | https://github.com/python/cpython/pull/30594/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 |