René's URL Explorer Experiment


Title: Preserve partial keyword identity through vectorcall by youknowdot · Pull Request #9127 · RustPython/RustPython · GitHub

Open Graph Title: Preserve partial keyword identity through vectorcall by youknowdot · Pull Request #9127 · RustPython/RustPython

X Title: Preserve partial keyword identity through vectorcall by youknowdot · Pull Request #9127 · RustPython/RustPython

Description: Summary Extract the Python 3.15 final functools.partial vectorcall changes from #8954, including the required CALL_FUNCTION_EX dependency. Preserve keyword string-subclass objects through ordinary and instrumented CALL_FUNCTION_EX calls. Merge partial keywords without eagerly normalizing their identities, and snapshot the wrapped function, arguments and keywords before Python hash/equality callbacks can replace partial state. Preserve placeholder handling and the existing fallback for wrapped callables without vectorcall. No Lib/ files or existing tests are modified. Validation Fresh narrow release build with threading, stdlib, stdio, importlib and host_env: passed. Nineteen unchanged canonical CPython v3.15.0 test cases, each run in a separate process with a 30-second / 1-GiB bound: passed, zero skips. These cover partial arguments/placeholders/subclasses/keyword errors, kwargs ordering, instrumented CALL_FUNCTION_EX, and one reentrant state replacement with one gc.collect() call. Strict VM/stdlib all-target Clippy with compiler/threading/host_env and -D warnings: passed. Configured hooks and git diff --check: passed. The first two-file extraction failed the unchanged test_str_subclass_error: the existing CALL_FUNCTION_EX path discarded the keyword subclass before partial saw it. The frame change fixes that missing prerequisite; the same assertion now passes. Canonical tests were source-preserved in external bounded runners from CPython final d220409a13b77de7a6c30abe16ea90db01528edc. Full workspace/C-API suites, broad monitoring coverage, stress/concurrency probes and other platforms were not run locally; hosted CI remains required. The one reentrant test is not a general GC or concurrency safety claim. AI-assisted implementation and validation with OpenAI Codex. Review follow-up Registered PyPartial::vectorcall directly with the existing #[pyslot] support instead of an extend_class hook. Replaced the incoming-keyword downcast panic in the non-vectorcall fallback with TypeError. This is defensive handling; malformed raw vectorcall keyword names violate CPython's C-API caller contract. Fresh narrow release build passed; 10 unchanged final CPython methods passed for both native partial and a plain subclass (20 bounded invocations, zero skips). Separate bounded checks verified direct and state-installed nested subclass __call__ overrides. Strict VM/stdlib all-target Clippy (-D warnings) and normal commit hooks passed. Summary by CodeRabbit Bug Fixes Improved calls using unpacked positional and keyword arguments, including keyword names provided by string subclasses. Improved partial-function calls with placeholders and stored keyword arguments, while preserving compatibility with callables that use a different calling mechanism. Improved call-monitoring event details for calls made without positional arguments, so monitoring receives the appropriate missing-value indicator when no positional argument is present.

Open Graph Description: Summary Extract the Python 3.15 final functools.partial vectorcall changes from #8954, including the required CALL_FUNCTION_EX dependency. Preserve keyword string-subclass objects through ordinary...

X Description: Summary Extract the Python 3.15 final functools.partial vectorcall changes from #8954, including the required CALL_FUNCTION_EX dependency. Preserve keyword string-subclass objects through ordinary...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9127

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9785ec3b-7f25-48e2-d3ed-724a78c78806
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE712:172B92:33ACAC1:44D9607:6B01FB5C
html-safe-noncee759715f8082e850105e8a369d49b64a69a144468135cb817e72c0ce1c13d742
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzEyOjE3MkI5MjozM0FDQUMxOjQ0RDk2MDc6NkIwMUZCNUMiLCJ2aXNpdG9yX2lkIjoiNTg5MjAwNzM2MTYxNDMxNDMzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1f2df635ed250dc91f9a736030b0f036a0a610178ee45573501931dabca17662
hovercard-subject-tagpull_request:4862424095
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9127/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Extract the Python 3.15 final functools.partial vectorcall changes from #8954, including the required CALL_FUNCTION_EX dependency. Preserve keyword string-subclass objects through ordinary...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9127/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9127%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9127%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/RustPython/RustPython/pull/9127/files
Reloadhttps://github.com/RustPython/RustPython/pull/9127/files
Reloadhttps://github.com/RustPython/RustPython/pull/9127/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:split/partial-vectorcall-315https://github.com/youknowdot/RustPython/tree/split/partial-vectorcall-315
Conversation 7 https://github.com/RustPython/RustPython/pull/9127
Commits 2 https://github.com/RustPython/RustPython/pull/9127/commits
Checks 19 https://github.com/RustPython/RustPython/pull/9127/checks
Files changed https://github.com/RustPython/RustPython/pull/9127/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9127/files
Preserve partial keyword identity through vectorcall https://github.com/RustPython/RustPython/pull/9127/files#top
Show all changes 2 commits https://github.com/RustPython/RustPython/pull/9127/files
5cd074a Preserve partial keyword identity through vectorcall youknowdot Oct 14, 2026 https://github.com/RustPython/RustPython/pull/9127/commits/5cd074a390816ccebcf65e9b71fd14aebad6d8d7
b6c253d Register partial vectorcall through pyslot youknowdot Oct 15, 2026 https://github.com/RustPython/RustPython/pull/9127/commits/b6c253dad8a121bedcd2841682fdbe7e679e0e59
Clear filters https://github.com/RustPython/RustPython/pull/9127/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9127/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9127/files
dict.rs https://github.com/RustPython/RustPython/pull/9127/files#diff-da22219fe05502509c75f7b1ba56079fecf076601f219531bef523705764e68b
frame.rs https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
_functools.rs https://github.com/RustPython/RustPython/pull/9127/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
crates/vm/src/builtins/dict.rshttps://github.com/RustPython/RustPython/pull/9127/files#diff-da22219fe05502509c75f7b1ba56079fecf076601f219531bef523705764e68b
View file https://github.com/youknowdot/RustPython/blob/b6c253dad8a121bedcd2841682fdbe7e679e0e59/crates/vm/src/builtins/dict.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9127/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9127/files#diff-da22219fe05502509c75f7b1ba56079fecf076601f219531bef523705764e68b
https://github.com/RustPython/RustPython/pull/9127/files#diff-da22219fe05502509c75f7b1ba56079fecf076601f219531bef523705764e68b
crates/vm/src/frame.rshttps://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
View file https://github.com/youknowdot/RustPython/blob/b6c253dad8a121bedcd2841682fdbe7e679e0e59/crates/vm/src/frame.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9127/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9127/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
crates/vm/src/stdlib/_functools.rshttps://github.com/RustPython/RustPython/pull/9127/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
View file https://github.com/youknowdot/RustPython/blob/b6c253dad8a121bedcd2841682fdbe7e679e0e59/crates/vm/src/stdlib/_functools.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9127/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9127/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9127/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9127/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9127/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9127/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9127/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9127/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.