| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a4a02bf2-d9c5-34b4-fea1-0a8aad4556c3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D658:19CD0D:B5E4AA:F3A5E6:6A5B6888 |
| html-safe-nonce | 6691a8fe4e65e6a270dd25488a0b04544687264a29bf685293b3c40280e920d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjU4OjE5Q0QwRDpCNUU0QUE6RjNBNUU2OjZBNUI2ODg4IiwidmlzaXRvcl9pZCI6IjQxMDMwODAwNDMxNzM2MDM0NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 112b0f426a769e81e9c2bb5156c5a79b35fcd787ef82cdfd886383ae39cc5b0d |
| hovercard-subject-tag | pull_request:3369923291 |
| 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/RustPython/RustPython/pull/7386/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | Summary
Align BINARY_OP_EXTEND with descriptor-cache model: table-driven specialization for int|int bitwise, float|int and int|float mixed arithmetic
Add _spec_cache (init/getitem) to HeapTypeExt ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/RustPython/RustPython/pull/7386/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7386%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%2FRustPython%2FRustPython%2Fpull%2F7386%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=RustPython%2FRustPython |
| Reload | https://github.com/RustPython/RustPython/pull/7386/files |
| Reload | https://github.com/RustPython/RustPython/pull/7386/files |
| Reload | https://github.com/RustPython/RustPython/pull/7386/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7386/files |
|
RustPython
| https://github.com/RustPython |
| RustPython | https://github.com/RustPython/RustPython |
|
Notifications
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Fork
1.5k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Star
22.2k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
291
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
103
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
0
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FRustPython%2FRustPython%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=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| youknowone | https://github.com/youknowone |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| youknowone:specialization | https://github.com/youknowone/RustPython/tree/specialization |
|
Conversation
14
| https://github.com/RustPython/RustPython/pull/7386 |
|
Commits
14
| https://github.com/RustPython/RustPython/pull/7386/commits |
|
Checks
12
| https://github.com/RustPython/RustPython/pull/7386/checks |
|
Files changed
| https://github.com/RustPython/RustPython/pull/7386/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7386/files |
|
Refine specialization caches and extend binary-op coverage
| https://github.com/RustPython/RustPython/pull/7386/files#top |
|
Show all changes
14 commits
| https://github.com/RustPython/RustPython/pull/7386/files |
|
5393e86
Align BINARY_OP_EXTEND with CPython descriptor cache model
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/5393e866dcc4589f2cc568d7cd3106cd7470274e |
|
5bc6078
Align type _spec_cache and latin1 singleton string paths
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/5bc60780713299138f1ab6fd3483249ab5bdb773 |
|
cb156c1
Add specialization differential harness and align init error text
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/cb156c1db6b5221fe2e4048a823e5ca9e88b963b |
|
fc4728b
Tighten CALL_ALLOC_AND_ENTER_INIT stack-space guard
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/fc4728bbe16e9385521dd662244e06606d35a49f |
|
c487b6d
Align call-init frame flow and spec cache atomic ordering
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/c487b6d3e0d638ddafc06f57fbc5dfefe751bc50 |
|
2dd64b8
Refine call-init recursion guard and cache swap lifetime handling
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/2dd64b84174b4469dc94d329b487c8ea7abde8f2 |
|
a0c302c
Align spec cache write locking with CPython contract
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/a0c302c459433bab6e8f59e7899bd77942986ffe |
|
ceefe6e
rename
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/ceefe6ebd135b202cf2f88ea22eee9ef021d30ba |
|
2d7cb74
address review: invalidate init cache on type modification, add cspel…
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/2d7cb7449a8ef06a834a6328118239ab9b206d05 |
|
f7924dd
Align load attr miss cooldown with CPython
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/f7924ddf38f487d093900b1b816c3e36adc48802 |
|
138d48e
Align CALL descriptor and class-call specialization with CPython
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/138d48e4ca335e3c79f9be179aeeb9a49144834c |
|
aa9f5a8
address review: check datastack space for extra_bytes, require CO_OPT…
youknowone Mar 8, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/aa9f5a8150c6e9590a73588268e24b7c0f10609c |
|
a277b86
Extract datastack_frame_size_bytes_for_code, skip monitoring for init…
youknowone Mar 9, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/a277b86cfbe3952c515c5f05fca0be1a9c5f9fbb |
|
dbd8b1a
Fix Constants newtype usage in init_cleanup_code
youknowone Mar 9, 2026
| https://github.com/RustPython/RustPython/pull/7386/commits/dbd8b1a4660404df99dce73a35b3d182b2f59247 |
|
Clear filters
| https://github.com/RustPython/RustPython/pull/7386/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7386/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7386/files |
|
function.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
str.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-a04ea1f7734fe40189e756196e034e6dedfcd5c82f2925e58cfd51ba7432073a |
|
type.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-fb88962f9343ca7b8d31bfe34f5063136575e05eadae6fccb3b64658e14b0d6c |
|
frame.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb |
|
ext.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-ccab52adc1059b887873204f5691f9782da457688e788cfa7b214961357e11fa |
|
callable.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-c628df2d1e9da9a44072436e1be957a381d2755ff2456d3474c1eca1debf4ff3 |
|
builtins.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-ce8bd80bb61ce870dbf04415913693df814ebda260d3fc784b689a657e694ca3 |
|
slot.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-1b5587c15bdfe9ff552fbc35e014eef20d6b7934fbb31b922cf35d87e8837b7b |
|
context.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-266ab6550d81a4d367e5ef4973281aecf61c7abb46760195fc4ad6064bca0791 |
|
mod.rs
| https://github.com/RustPython/RustPython/pull/7386/files#diff-fe30ecf7c6b462e46e0874a55a05ea0edba83cefad5ac7a86e7137fa8f86ba74 |
| crates/vm/src/builtins/function.rs | https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
View file
| https://github.com/youknowone/RustPython/blob/dbd8b1a4660404df99dce73a35b3d182b2f59247/crates/vm/src/builtins/function.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7386/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
| coderabbitai | https://github.com/apps/coderabbitai |
| Mar 9, 2026 | https://github.com/RustPython/RustPython/pull/7386/files#r2903038786 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7386/files |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-42d321490bc76e3b57deebb41ff9815e8bbb7c976bb1b57a076d01f7bc347698 |
| crates/vm/src/builtins/str.rs | https://github.com/RustPython/RustPython/pull/7386/files#diff-a04ea1f7734fe40189e756196e034e6dedfcd5c82f2925e58cfd51ba7432073a |
|
View file
| https://github.com/youknowone/RustPython/blob/dbd8b1a4660404df99dce73a35b3d182b2f59247/crates/vm/src/builtins/str.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7386/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-a04ea1f7734fe40189e756196e034e6dedfcd5c82f2925e58cfd51ba7432073a |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-a04ea1f7734fe40189e756196e034e6dedfcd5c82f2925e58cfd51ba7432073a |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-a04ea1f7734fe40189e756196e034e6dedfcd5c82f2925e58cfd51ba7432073a |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-a04ea1f7734fe40189e756196e034e6dedfcd5c82f2925e58cfd51ba7432073a |
|
| https://github.com/RustPython/RustPython/pull/7386/files#diff-a04ea1f7734fe40189e756196e034e6dedfcd5c82f2925e58cfd51ba7432073a |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7386/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7386/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 |