René's URL Explorer Experiment


Title: Align OS callable signatures and argument conversions by youknowdot · Pull Request #9536 · RustPython/RustPython · GitHub

Open Graph Title: Align OS callable signatures and argument conversions by youknowdot · Pull Request #9536 · RustPython/RustPython

X Title: Align OS callable signatures and argument conversions by youknowdot · Pull Request #9536 · RustPython/RustPython

Description: Summary Address twelve concrete whats_left signature mismatches from #9530's Ubuntu report (head 68646843423633e60bd54c6d4150db953b303804, CPython 3.15.0), with corresponding argument declarations rather than arbitrary signature strings: Correct defaults/names for get_child_pids, mmap.flush, epoll poll/__exit__, socket send/sendall, pidfd_send_signal, scheduler setters, getrandom, pidfd_open, and copy_file_range. Accept the keywords CPython actually accepts for getrandom, pidfd_open, and copy_file_range. Fix adjacent real converter defects: preserve explicit recursive=None until boolean conversion after pid conversion; reject mmap.flush(..., None) through its integer converter; use signed C-int flags for getrandom/pidfd_send_signal; allow raw C-int signal numbers, including zero, for pidfd_send_signal without weakening other APIs' SignalNum invariant. Add the already-reviewed --signature flag to the existing CI comparison so the exact after-head report can measure the proposed reductions. It only prints results already computed; no extra scan/import/run is introduced. Source contracts CPython reference: d220409a / Python 3.15.0. Modules/clinic/posixmodule.c.h: keyword acceptance and signed getrandom versus unsigned pidfd_open flags. Modules/_remote_debugging/clinic/module.c.h: pid conversion before PyObject_IsTrue(recursive); omitted recursive defaults to true. Modules/clinic/mmapmodule.c.h: size is an integer with default -1, not a nullable size. Modules/clinic/signalmodule.c.h: raw C-int signal number/flags and raw optional siginfo. No FD ownership, host helper, or unsafe block is rewritten. Socket buffer conversion/borrow sequencing and signal siginfo validation remain scoped to their existing paths. Validation and limits Independent source review, normal hooks, and git diff --check passed. Local compile/unit/interpreter tests were not run because the dependency-cache/network bootstrap blocker remains. Existing CI and the exact-head signature report must validate this Draft; twelve removals are an expectation, not a measured result yet. This does not claim full CPython syscall or error-priority compatibility. Existing copy_file_range raw-FD conversion and count/offset error-order differences, getrandom negative-size errno/EINTR behavior, and remaining epoll/sched_param report items are outside this patch. No custom signal/FD probes, assertions, Lib edits, or snippet additions are included. Summary by CodeRabbit Bug Fixes Corrected default handling for optional arguments in process, polling, file-copying, and system-call interfaces. Updated memory-map flushing so an omitted size flushes the remaining mapping, while invalid negative sizes are rejected. Clarified socket send and send-all argument handling: data and flags must be supplied positionally. Improved signal-sending argument handling and made scheduler parameter names explicit.

Open Graph Description: Summary Address twelve concrete whats_left signature mismatches from #9530's Ubuntu report (head 68646843423633e60bd54c6d4150db953b303804, CPython 3.15.0), with corresponding argument declarati...

X Description: Summary Address twelve concrete whats_left signature mismatches from #9530's Ubuntu report (head 68646843423633e60bd54c6d4150db953b303804, CPython 3.15.0), with corresponding argument decla...

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

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:d055693c-c545-a93b-5588-8f6c95a7c6b8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE230:311640:39A63CF:4950421:6B01FE3F
html-safe-nonce13474ae57fa01a422e92484c861eca0b5cf2e33acf94b22d4bc85c1078716c8e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjMwOjMxMTY0MDozOUE2M0NGOjQ5NTA0MjE6NkIwMUZFM0YiLCJ2aXNpdG9yX2lkIjoiMzIwMjYxMTU2NjU3MDc2NTg4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4cfa0be46b0b57bb30f633d9d4131127aac687a9234c32e9ee7b07142b538dca
hovercard-subject-tagpull_request:5120586064
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/9536/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 Address twelve concrete whats_left signature mismatches from #9530's Ubuntu report (head 68646843423633e60bd54c6d4150db953b303804, CPython 3.15.0), with corresponding argument declarati...
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/9536/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9536%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%2F9536%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/9536/files
Reloadhttps://github.com/RustPython/RustPython/pull/9536/files
Reloadhttps://github.com/RustPython/RustPython/pull/9536/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/os-signature-bindings-20261102https://github.com/youknowdot/RustPython/tree/fix/os-signature-bindings-20261102
Conversation 3 https://github.com/RustPython/RustPython/pull/9536
Commits 1 https://github.com/RustPython/RustPython/pull/9536/commits
Checks 28 https://github.com/RustPython/RustPython/pull/9536/checks
Files changed https://github.com/RustPython/RustPython/pull/9536/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9536/files
Align OS callable signatures and argument conversions https://github.com/RustPython/RustPython/pull/9536/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9536/files
42b5143 Align OS argument bindings and reported signatures codex Nov 2, 2026 https://github.com/RustPython/RustPython/pull/9536/commits/42b51439a3f3c1135318deb2b5885a83364176b7
Clear filters https://github.com/RustPython/RustPython/pull/9536/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9536/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9536/files
ci.yaml https://github.com/RustPython/RustPython/pull/9536/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
_remote_debugging.rs https://github.com/RustPython/RustPython/pull/9536/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
mmap.rs https://github.com/RustPython/RustPython/pull/9536/files#diff-f019287585dfa476feb78beedd3e67b25292c5da5514fccbff2981bd8e0dc0df
select.rs https://github.com/RustPython/RustPython/pull/9536/files#diff-9e541446cb5321da18fb2db4eb334f6d7ec9f0cbdc04b74f120752d19efbb549
socket.rs https://github.com/RustPython/RustPython/pull/9536/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
_signal.rs https://github.com/RustPython/RustPython/pull/9536/files#diff-277e8770c8f1721bb34a035e1cf3bbd5938fec26b3e6b71382cb89253e03bb86
os.rs https://github.com/RustPython/RustPython/pull/9536/files#diff-3a1b2246dc47369778bf6889ee62be670eee468a599dee319ca981ead50d686a
posix.rs https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
.github/workflows/ci.yamlhttps://github.com/RustPython/RustPython/pull/9536/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
View file https://github.com/youknowdot/RustPython/blob/42b51439a3f3c1135318deb2b5885a83364176b7/.github/workflows/ci.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9536/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9536/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
https://github.com/RustPython/RustPython/pull/9536/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
crates/stdlib/src/_remote_debugging.rshttps://github.com/RustPython/RustPython/pull/9536/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
View file https://github.com/youknowdot/RustPython/blob/42b51439a3f3c1135318deb2b5885a83364176b7/crates/stdlib/src/_remote_debugging.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9536/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9536/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
https://github.com/RustPython/RustPython/pull/9536/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
https://github.com/RustPython/RustPython/pull/9536/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
https://github.com/RustPython/RustPython/pull/9536/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
https://github.com/RustPython/RustPython/pull/9536/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
crates/stdlib/src/mmap.rshttps://github.com/RustPython/RustPython/pull/9536/files#diff-f019287585dfa476feb78beedd3e67b25292c5da5514fccbff2981bd8e0dc0df
View file https://github.com/youknowdot/RustPython/blob/42b51439a3f3c1135318deb2b5885a83364176b7/crates/stdlib/src/mmap.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9536/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9536/files#diff-f019287585dfa476feb78beedd3e67b25292c5da5514fccbff2981bd8e0dc0df
https://github.com/RustPython/RustPython/pull/9536/files#diff-f019287585dfa476feb78beedd3e67b25292c5da5514fccbff2981bd8e0dc0df
https://github.com/RustPython/RustPython/pull/9536/files#diff-f019287585dfa476feb78beedd3e67b25292c5da5514fccbff2981bd8e0dc0df
crates/stdlib/src/select.rshttps://github.com/RustPython/RustPython/pull/9536/files#diff-9e541446cb5321da18fb2db4eb334f6d7ec9f0cbdc04b74f120752d19efbb549
View file https://github.com/youknowdot/RustPython/blob/42b51439a3f3c1135318deb2b5885a83364176b7/crates/stdlib/src/select.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9536/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9536/files#diff-9e541446cb5321da18fb2db4eb334f6d7ec9f0cbdc04b74f120752d19efbb549
https://github.com/RustPython/RustPython/pull/9536/files#diff-9e541446cb5321da18fb2db4eb334f6d7ec9f0cbdc04b74f120752d19efbb549
https://github.com/RustPython/RustPython/pull/9536/files#diff-9e541446cb5321da18fb2db4eb334f6d7ec9f0cbdc04b74f120752d19efbb549
https://github.com/RustPython/RustPython/pull/9536/files#diff-9e541446cb5321da18fb2db4eb334f6d7ec9f0cbdc04b74f120752d19efbb549
crates/stdlib/src/socket.rshttps://github.com/RustPython/RustPython/pull/9536/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
View file https://github.com/youknowdot/RustPython/blob/42b51439a3f3c1135318deb2b5885a83364176b7/crates/stdlib/src/socket.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9536/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9536/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
https://github.com/RustPython/RustPython/pull/9536/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
https://github.com/RustPython/RustPython/pull/9536/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
https://github.com/RustPython/RustPython/pull/9536/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
https://github.com/RustPython/RustPython/pull/9536/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
crates/vm/src/stdlib/_signal.rshttps://github.com/RustPython/RustPython/pull/9536/files#diff-277e8770c8f1721bb34a035e1cf3bbd5938fec26b3e6b71382cb89253e03bb86
View file https://github.com/youknowdot/RustPython/blob/42b51439a3f3c1135318deb2b5885a83364176b7/crates/vm/src/stdlib/_signal.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9536/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9536/files#diff-277e8770c8f1721bb34a035e1cf3bbd5938fec26b3e6b71382cb89253e03bb86
https://github.com/RustPython/RustPython/pull/9536/files#diff-277e8770c8f1721bb34a035e1cf3bbd5938fec26b3e6b71382cb89253e03bb86
https://github.com/RustPython/RustPython/pull/9536/files#diff-277e8770c8f1721bb34a035e1cf3bbd5938fec26b3e6b71382cb89253e03bb86
crates/vm/src/stdlib/os.rshttps://github.com/RustPython/RustPython/pull/9536/files#diff-3a1b2246dc47369778bf6889ee62be670eee468a599dee319ca981ead50d686a
View file https://github.com/youknowdot/RustPython/blob/42b51439a3f3c1135318deb2b5885a83364176b7/crates/vm/src/stdlib/os.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9536/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9536/files#diff-3a1b2246dc47369778bf6889ee62be670eee468a599dee319ca981ead50d686a
https://github.com/RustPython/RustPython/pull/9536/files#diff-3a1b2246dc47369778bf6889ee62be670eee468a599dee319ca981ead50d686a
crates/vm/src/stdlib/posix.rshttps://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
View file https://github.com/youknowdot/RustPython/blob/42b51439a3f3c1135318deb2b5885a83364176b7/crates/vm/src/stdlib/posix.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9536/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
https://github.com/RustPython/RustPython/pull/9536/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9536/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.