René's URL Explorer Experiment


Title: Align core callable signatures and argument contracts by youknowdot · Pull Request #9538 · RustPython/RustPython · GitHub

Open Graph Title: Align core callable signatures and argument contracts by youknowdot · Pull Request #9538 · RustPython/RustPython

X Title: Align core callable signatures and argument contracts by youknowdot · Pull Request #9538 · RustPython/RustPython

Description: Scope Follow up 15 concrete signature mismatches in the existing whats_left CI report against CPython 3.15.0. This is not a claim that the full signature inventory is fixed. Preserve omitted-vs-explicit-None behavior while supplying CPython Clinic display defaults for __lazy_import__ and _warnings.warn. Align AST, profiler callback, and JSON encoder parameter names. Give JSON scanstring its actual positional/default metadata and use truth conversion for strict (the prior Rust bool converter only accepted integers). Accept the Clinic-supported keywords for the two sys lazy-import setters. Require exactly three positional arguments to lock/RLock __exit__ before releasing, rather than accepting arbitrary varargs. Include the already reviewed --signature output option on the existing CI comparison command; it only prints details the script already computes, without adding scans/imports. Two pure Rust tests check the actual warning/lazy-import parameter metadata. No Lib tests, assertions, snippets, dependencies or generic binder ordering are changed. Validation Independent source review against pinned CPython d220409a13b77de7a6c30abe16ea90db01528edc: passed. Normal repository commit hooks and diff whitespace check: passed. Local Cargo compilation/tests and interpreter execution: not run; local dependency-cache/network restoration remains blocked. CI validation is pending for this exact head. The 15-item reduction is a source-based expectation, not yet an observed after-report. Existing full suites and the detailed comparator will measure it. Remaining differences include warning stacklevel's i32 width vs Py_ssize_t and generic invalid-call error priority. This patch does not establish complete runtime or error-message parity.

Open Graph Description: Scope Follow up 15 concrete signature mismatches in the existing whats_left CI report against CPython 3.15.0. This is not a claim that the full signature inventory is fixed. Preserve omitted-vs-ex...

X Description: Scope Follow up 15 concrete signature mismatches in the existing whats_left CI report against CPython 3.15.0. This is not a claim that the full signature inventory is fixed. Preserve omitted-vs-ex...

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

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:4715666a-e2ef-adff-e83c-930a9227501e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC0E:14700E:3B04297:4AEF853:6B01FE18
html-safe-nonce41a9e83d2637c640bc6d121a736a570920163c7e0b4fc371a9c83fc5f03c7f0f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzBFOjE0NzAwRTozQjA0Mjk3OjRBRUY4NTM6NkIwMUZFMTgiLCJ2aXNpdG9yX2lkIjoiMTc0MTU3MzIzNTYxMjQ1MDMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9b959e0d5af8409e17c253d0f69611f375a7e80ee79c20229afe6057bd1e4637
hovercard-subject-tagpull_request:5120793833
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/9538/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:altScope Follow up 15 concrete signature mismatches in the existing whats_left CI report against CPython 3.15.0. This is not a claim that the full signature inventory is fixed. Preserve omitted-vs-ex...
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/9538/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9538%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%2F9538%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/9538/files
Reloadhttps://github.com/RustPython/RustPython/pull/9538/files
Reloadhttps://github.com/RustPython/RustPython/pull/9538/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:fix-core-signature-contracts-20261102https://github.com/youknowdot/RustPython/tree/fix-core-signature-contracts-20261102
Conversation 4 https://github.com/RustPython/RustPython/pull/9538
Commits 6 https://github.com/RustPython/RustPython/pull/9538/commits
Checks 28 https://github.com/RustPython/RustPython/pull/9538/checks
Files changed https://github.com/RustPython/RustPython/pull/9538/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9538/files
Align core callable signatures and argument contracts https://github.com/RustPython/RustPython/pull/9538/files#top
Show all changes 6 commits https://github.com/RustPython/RustPython/pull/9538/files
6cb9287 Align core callable signatures and argument contracts codex Nov 2, 2026 https://github.com/RustPython/RustPython/pull/9538/commits/6cb9287258b3a748d0515dc33dd38ff2b33f01d3
e8952b9 Print existing signature mismatch details in CI codex Nov 2, 2026 https://github.com/RustPython/RustPython/pull/9538/commits/e8952b96fdd7d107c50be9e43331b5cbe1cb48b5
3cd3107 Remove obsolete lock exit varargs import codex Nov 2, 2026 https://github.com/RustPython/RustPython/pull/9538/commits/3cd31079cb1cea5bf13007343b1be99c87037278
fadfab2 Remove obsolete JSON OptionalArg import codex Nov 2, 2026 https://github.com/RustPython/RustPython/pull/9538/commits/fadfab20586f76f4c9ed2ac27e731bebd27ccb3d
b599b83 Merge main into core signature contracts codex Nov 2, 2026 https://github.com/RustPython/RustPython/pull/9538/commits/b599b8360c681efaa4f67d7d8b2576d7cc11ab0f
8e138f4 Use typed None defaults for warning arguments codex Nov 3, 2026 https://github.com/RustPython/RustPython/pull/9538/commits/8e138f4cf6644db21f006f0f7603ada2e40346d8
Clear filters https://github.com/RustPython/RustPython/pull/9538/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9538/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9538/files
json.rs https://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
python.rs https://github.com/RustPython/RustPython/pull/9538/files#diff-a8ea4fec104dbdd3b27982fa0ea6853d41f1642422a65ea5b72a36f6006878b4
_lsprof.rs https://github.com/RustPython/RustPython/pull/9538/files#diff-cae7b883d47042c3b81ac592743988145e28f335c5a79cbd3e1f8ca7713decdf
_thread.rs https://github.com/RustPython/RustPython/pull/9538/files#diff-0006354bf5c0b6258c334f326e9c125eae4c55e8dae289a4990e76d7503885cb
_warnings.rs https://github.com/RustPython/RustPython/pull/9538/files#diff-ca4b7e7255f8b210ca0a92f03945f1c654183f2ce09eec71b661a50f81169b6d
builtins.rs https://github.com/RustPython/RustPython/pull/9538/files#diff-ce8bd80bb61ce870dbf04415913693df814ebda260d3fc784b689a657e694ca3
sys.rs https://github.com/RustPython/RustPython/pull/9538/files#diff-e7f7c10b81f88d7af77af76257284e18e72ed9da63ff63675a9e9cb31c8d262d
crates/stdlib/src/json.rshttps://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
View file https://github.com/youknowdot/RustPython/blob/8e138f4cf6644db21f006f0f7603ada2e40346d8/crates/stdlib/src/json.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9538/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
https://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
https://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
https://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
https://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
https://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
https://github.com/RustPython/RustPython/pull/9538/files#diff-178128486470adaa06dc096deddc4f7da63b1af9c0555e93fed81ae66c6e5f5e
crates/vm/src/stdlib/_ast/python.rshttps://github.com/RustPython/RustPython/pull/9538/files#diff-a8ea4fec104dbdd3b27982fa0ea6853d41f1642422a65ea5b72a36f6006878b4
View file https://github.com/youknowdot/RustPython/blob/8e138f4cf6644db21f006f0f7603ada2e40346d8/crates/vm/src/stdlib/_ast/python.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9538/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9538/files#diff-a8ea4fec104dbdd3b27982fa0ea6853d41f1642422a65ea5b72a36f6006878b4
https://github.com/RustPython/RustPython/pull/9538/files#diff-a8ea4fec104dbdd3b27982fa0ea6853d41f1642422a65ea5b72a36f6006878b4
crates/vm/src/stdlib/_lsprof.rshttps://github.com/RustPython/RustPython/pull/9538/files#diff-cae7b883d47042c3b81ac592743988145e28f335c5a79cbd3e1f8ca7713decdf
View file https://github.com/youknowdot/RustPython/blob/8e138f4cf6644db21f006f0f7603ada2e40346d8/crates/vm/src/stdlib/_lsprof.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9538/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9538/files#diff-cae7b883d47042c3b81ac592743988145e28f335c5a79cbd3e1f8ca7713decdf
https://github.com/RustPython/RustPython/pull/9538/files#diff-cae7b883d47042c3b81ac592743988145e28f335c5a79cbd3e1f8ca7713decdf
https://github.com/RustPython/RustPython/pull/9538/files#diff-cae7b883d47042c3b81ac592743988145e28f335c5a79cbd3e1f8ca7713decdf
https://github.com/RustPython/RustPython/pull/9538/files#diff-cae7b883d47042c3b81ac592743988145e28f335c5a79cbd3e1f8ca7713decdf
https://github.com/RustPython/RustPython/pull/9538/files#diff-cae7b883d47042c3b81ac592743988145e28f335c5a79cbd3e1f8ca7713decdf
https://github.com/RustPython/RustPython/pull/9538/files#diff-cae7b883d47042c3b81ac592743988145e28f335c5a79cbd3e1f8ca7713decdf
crates/vm/src/stdlib/_thread.rshttps://github.com/RustPython/RustPython/pull/9538/files#diff-0006354bf5c0b6258c334f326e9c125eae4c55e8dae289a4990e76d7503885cb
View file https://github.com/youknowdot/RustPython/blob/8e138f4cf6644db21f006f0f7603ada2e40346d8/crates/vm/src/stdlib/_thread.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9538/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9538/files#diff-0006354bf5c0b6258c334f326e9c125eae4c55e8dae289a4990e76d7503885cb
https://github.com/RustPython/RustPython/pull/9538/files#diff-0006354bf5c0b6258c334f326e9c125eae4c55e8dae289a4990e76d7503885cb
https://github.com/RustPython/RustPython/pull/9538/files#diff-0006354bf5c0b6258c334f326e9c125eae4c55e8dae289a4990e76d7503885cb
https://github.com/RustPython/RustPython/pull/9538/files#diff-0006354bf5c0b6258c334f326e9c125eae4c55e8dae289a4990e76d7503885cb
https://github.com/RustPython/RustPython/pull/9538/files#diff-0006354bf5c0b6258c334f326e9c125eae4c55e8dae289a4990e76d7503885cb
https://github.com/RustPython/RustPython/pull/9538/files#diff-0006354bf5c0b6258c334f326e9c125eae4c55e8dae289a4990e76d7503885cb
crates/vm/src/stdlib/_warnings.rshttps://github.com/RustPython/RustPython/pull/9538/files#diff-ca4b7e7255f8b210ca0a92f03945f1c654183f2ce09eec71b661a50f81169b6d
View file https://github.com/youknowdot/RustPython/blob/8e138f4cf6644db21f006f0f7603ada2e40346d8/crates/vm/src/stdlib/_warnings.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9538/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9538/files#diff-ca4b7e7255f8b210ca0a92f03945f1c654183f2ce09eec71b661a50f81169b6d
https://github.com/RustPython/RustPython/pull/9538/files#diff-ca4b7e7255f8b210ca0a92f03945f1c654183f2ce09eec71b661a50f81169b6d
https://github.com/RustPython/RustPython/pull/9538/files#diff-ca4b7e7255f8b210ca0a92f03945f1c654183f2ce09eec71b661a50f81169b6d
https://github.com/RustPython/RustPython/pull/9538/files#diff-ca4b7e7255f8b210ca0a92f03945f1c654183f2ce09eec71b661a50f81169b6d
https://github.com/RustPython/RustPython/pull/9538/files#diff-ca4b7e7255f8b210ca0a92f03945f1c654183f2ce09eec71b661a50f81169b6d
crates/vm/src/stdlib/builtins.rshttps://github.com/RustPython/RustPython/pull/9538/files#diff-ce8bd80bb61ce870dbf04415913693df814ebda260d3fc784b689a657e694ca3
View file https://github.com/youknowdot/RustPython/blob/8e138f4cf6644db21f006f0f7603ada2e40346d8/crates/vm/src/stdlib/builtins.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9538/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9538/files#diff-ce8bd80bb61ce870dbf04415913693df814ebda260d3fc784b689a657e694ca3
youknowonehttps://github.com/youknowone
Nov 2, 2026https://github.com/RustPython/RustPython/pull/9538/files#r4444237577
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9538/files
https://github.com/RustPython/RustPython/pull/9538/files#diff-ce8bd80bb61ce870dbf04415913693df814ebda260d3fc784b689a657e694ca3
https://github.com/RustPython/RustPython/pull/9538/files#diff-ce8bd80bb61ce870dbf04415913693df814ebda260d3fc784b689a657e694ca3
crates/vm/src/stdlib/sys.rshttps://github.com/RustPython/RustPython/pull/9538/files#diff-e7f7c10b81f88d7af77af76257284e18e72ed9da63ff63675a9e9cb31c8d262d
View file https://github.com/youknowdot/RustPython/blob/8e138f4cf6644db21f006f0f7603ada2e40346d8/crates/vm/src/stdlib/sys.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9538/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9538/files#diff-e7f7c10b81f88d7af77af76257284e18e72ed9da63ff63675a9e9cb31c8d262d
https://github.com/RustPython/RustPython/pull/9538/files#diff-e7f7c10b81f88d7af77af76257284e18e72ed9da63ff63675a9e9cb31c8d262d
https://github.com/RustPython/RustPython/pull/9538/files#diff-e7f7c10b81f88d7af77af76257284e18e72ed9da63ff63675a9e9cb31c8d262d
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9538/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.