René's URL Explorer Experiment


Title: Generate callable instance signatures from binding metadata by youknowdot · Pull Request #9903 · RustPython/RustPython · GitHub

Open Graph Title: Generate callable instance signatures from binding metadata by youknowdot · Pull Request #9903 · RustPython/RustPython

X Title: Generate callable instance signatures from binding metadata by youknowdot · Pull Request #9903 · RustPython/RustPython

Description: Summary Generate opt-in callable-instance __text_signature__ descriptors from Callable::Args metadata, instead of hand-written strings. This is distinct from the class constructor signature. Add #[pyclass(with(Callable), instance_text_signature)] using the existing const signature renderer in the concrete payload context. Give the operator getter call bindings named positional metadata and migrate attrgetter, itemgetter, methodcaller, and KeyWrapper to the generated descriptor. Reject invalid/duplicate opt-ins and cover concrete payload/wrapped impl expansion. This is the separate macro prerequisite requested in #9841. The related posix.sched_param constructor now also derives its signature from its existing typed arguments, replacing the generic struct-sequence signature without adding test duplication. SQLite adoption is intentionally not included: its closed-connection check must precede argument validation, so the follow-up keeps deferred binding while exposing typed metadata. Validation Rebased onto main cc92004e1, preserving the original commits/authors. Combined candidate head b987ea5c5, Linux x86_64, Rust 1.100: Default-feature + SQLite runtime build passed. test_operator, test_functools, test_inspect: 832 tests run, 50 skipped, success. Canonical test_os.test_posix -k sched: 15 tests, 3 skipped, success. sched_param raw/inspect signatures, positional/keyword/invalid inputs, pickle protocols and copy/deepcopy match CPython 3.15.2. Callable-instance signatures and readonly descriptors checked on all four migrated classes. Workspace Rust unit/doc tests: 1,622 passed, 21 ignored. Separate C-API tests: 153 passed, 2 ignored. Workspace/all-target and separate C-API Clippy passed; formatting, diff checks and normal commit hooks passed. Independent source review found no blocking ownership, slot ordering or metadata issue. Not run locally: Windows/macOS/WASI or performance measurements. Remote CI for the new head is pending; older-head green checks are not claimed for this revision. AI assistance: OpenAI Codex assisted implementation recovery, review, and validation. The runtime did not expose its model version.

Open Graph Description: Summary Generate opt-in callable-instance __text_signature__ descriptors from Callable::Args metadata, instead of hand-written strings. This is distinct from the class constructor signature. Add #...

X Description: Summary Generate opt-in callable-instance __text_signature__ descriptors from Callable::Args metadata, instead of hand-written strings. This is distinct from the class constructor signature. Add #...

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

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:c2f8183d-2c35-ef9a-f0ff-3b4d437d6a39
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id963E:7A60E:338272B:4218E8C:6B01D7F0
html-safe-nonce41cb21d75aff6534e3688dce81ac8f1a6e77b1f5e96fd114fe174a9563921d9d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjNFOjdBNjBFOjMzODI3MkI6NDIxOEU4Qzo2QjAxRDdGMCIsInZpc2l0b3JfaWQiOiI4MzM3NzEwMjA4Mzg2MTkzMzkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0a363bf4403362e6b9ef1e0c4c166f50b5a1bffa3f32e2e0e5e5aa2bf1002e79
hovercard-subject-tagpull_request:5351734313
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/9903/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 Generate opt-in callable-instance __text_signature__ descriptors from Callable::Args metadata, instead of hand-written strings. This is distinct from the class constructor signature. Add #...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9903/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9903%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%2F9903%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/9903/files
Reloadhttps://github.com/RustPython/RustPython/pull/9903/files
Reloadhttps://github.com/RustPython/RustPython/pull/9903/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests132 (132)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
youknowdothttps://github.com/youknowdot
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix/generated-instance-signatures-20261117https://github.com/youknowdot/RustPython/tree/fix/generated-instance-signatures-20261117
Conversation 2 https://github.com/RustPython/RustPython/pull/9903
Commits 3 https://github.com/RustPython/RustPython/pull/9903/commits
Checks 27 https://github.com/RustPython/RustPython/pull/9903/checks
Files changed https://github.com/RustPython/RustPython/pull/9903/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9903/files
Generate callable instance signatures from binding metadata https://github.com/RustPython/RustPython/pull/9903/files#top
Show all changes 3 commits https://github.com/RustPython/RustPython/pull/9903/files
2b1bb4e Generate callable instance signatures from binding metadata codex Nov 17, 2026 https://github.com/RustPython/RustPython/pull/9903/commits/2b1bb4e0863c93d2f31b8c56eac878ebef2e6855
3324c17 Generate callable signature getters with object receivers codex Nov 17, 2026 https://github.com/RustPython/RustPython/pull/9903/commits/3324c1787404fb5d41d248db2951e76ce0185dae
b987ea5 Derive sched_param constructor signature from typed arguments youknowdot Nov 18, 2026 https://github.com/RustPython/RustPython/pull/9903/commits/b987ea5c5c20f02f85f93c4c9a8c6f65a441d7b6
Clear filters https://github.com/RustPython/RustPython/pull/9903/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9903/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9903/files
pyclass.rs https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
lib.rs https://github.com/RustPython/RustPython/pull/9903/files#diff-20d9586a7e5e7a1ffb491abaefbd0c7a0c23bbea9524c66d06c8cc65c00ad539
_functools.rs https://github.com/RustPython/RustPython/pull/9903/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
_operator.rs https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
posix.rs https://github.com/RustPython/RustPython/pull/9903/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
crates/derive-impl/src/pyclass.rshttps://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
View file https://github.com/RustPython/RustPython/blob/b987ea5c5c20f02f85f93c4c9a8c6f65a441d7b6/crates/derive-impl/src/pyclass.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9903/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
https://github.com/RustPython/RustPython/pull/9903/files#diff-26c99b2025ccb53d8e726042a48a5886526d898281c27735bd1b6ebd51e55feb
crates/derive/src/lib.rshttps://github.com/RustPython/RustPython/pull/9903/files#diff-20d9586a7e5e7a1ffb491abaefbd0c7a0c23bbea9524c66d06c8cc65c00ad539
View file https://github.com/RustPython/RustPython/blob/b987ea5c5c20f02f85f93c4c9a8c6f65a441d7b6/crates/derive/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9903/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9903/files#diff-20d9586a7e5e7a1ffb491abaefbd0c7a0c23bbea9524c66d06c8cc65c00ad539
https://github.com/RustPython/RustPython/pull/9903/files#diff-20d9586a7e5e7a1ffb491abaefbd0c7a0c23bbea9524c66d06c8cc65c00ad539
crates/vm/src/stdlib/_functools.rshttps://github.com/RustPython/RustPython/pull/9903/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
View file https://github.com/RustPython/RustPython/blob/b987ea5c5c20f02f85f93c4c9a8c6f65a441d7b6/crates/vm/src/stdlib/_functools.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9903/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9903/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9903/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9903/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9903/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
https://github.com/RustPython/RustPython/pull/9903/files#diff-2c9fda394cba1b98080c8c39bd775debcd32de28ae1231ab0db0e532e7578986
crates/vm/src/stdlib/_operator.rshttps://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
View file https://github.com/RustPython/RustPython/blob/b987ea5c5c20f02f85f93c4c9a8c6f65a441d7b6/crates/vm/src/stdlib/_operator.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9903/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
https://github.com/RustPython/RustPython/pull/9903/files#diff-6dcca900ef9d987bbb3d2f28088c1689508a112ee3dda7ab8706f2d329ea41b3
crates/vm/src/stdlib/posix.rshttps://github.com/RustPython/RustPython/pull/9903/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
View file https://github.com/RustPython/RustPython/blob/b987ea5c5c20f02f85f93c4c9a8c6f65a441d7b6/crates/vm/src/stdlib/posix.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9903/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9903/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9903/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9903/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9903/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.