René's URL Explorer Experiment


Title: Align OS argument conversion and syscall handling with Python 3.15 by youknowdot · Pull Request #9146 · RustPython/RustPython · GitHub

Open Graph Title: Align OS argument conversion and syscall handling with Python 3.15 by youknowdot · Pull Request #9146 · RustPython/RustPython

X Title: Align OS argument conversion and syscall handling with Python 3.15 by youknowdot · Pull Request #9146 · RustPython/RustPython

Description: Summary Align OS argument conversion and timestamp protocols with CPython 3.15.0, preserving integer/ns semantics from #9116. Use raw-descriptor syscall entrypoints for Python-supplied descriptors; support Linux sendfile(offset=None), checked macOS headers/trailers and flags, canonical partial-success errors, and signal-aware EINTR retries. Add the Python-facing ftruncate/truncate audit events with canonical conversion ordering, retain Windows CRT errno handling, and update getlogin decoding/errno, Linux GNU NODEV, WASI chmod validation and fork-warning propagation. Import os.py and the final test_os package directly with update_lib from CPython d220409a13b77de7a6c30abe16ea90db01528edc. Preserve all five current test guards; retire the two legacy test modules through the reviewed package mapping. Rebased onto main at 9e18d7be6b90cec1fa01429a2955f1623dd53d4c, preserving the merged #9142 updater behavior. The CI repair adds six canonical test.support lines through an actual update_lib migrate invocation pinned to CPython d220409a13b77de7a6c30abe16ea90db01528edc: three root-user decorator assignments and two export names. Unrelated existing support helpers and customizations remain intact. The existing updater and its tests gain a narrowly scoped, hash-pinned selective test.support import mode with dependency and mode-conflict checks. This PR excludes closerange (#9031), mmap (#9141), getpath/sysconfig/venv and test_io changes. Validation Independent source/integration review and normal commit hooks passed. Current rebased head 948ebad7a7e6be094e63445fc13a9870527172de: All 238 updater host tests passed, including selective imports and unchanged preservation/default modes. A fresh matching narrow release build passed (threading,stdlib,stdio,importlib,host_env). Strict release Clippy passed for host_env and VM, all targets, with warnings denied. A bounded native import gate passed for test.support and the canonical test.test_os.test_os module, checking the imported helpers and root/non-root decorator flags/reasons in a non-root environment. Zero test bodies, loaders or fixtures were run. The exact copied binary, full source/Lib hashes, cache absence and loaded module origins were verified. The import ran with private cwd/TMP/cache and time/resource limits; its capability probes include disposable files/symlinks/xattrs, a localhost IPv6 bind and password-database enumeration. Historical focused runtime coverage on the original head 3f91766266469f922b44b32dbcbe630dbff591db: Nine fresh bounded canonical invocations: eight passed; getlogin skipped with ENOTTY because the environment has no login terminal. This is not validated login behavior. Complete source/Lib hashes, cache checks and module origins were verified before/after each case. Six test_os cases used AST-identical extracted methods/helpers and setup/cleanup rather than importing unrelated socket capability probes. Three PosixTester cases used the canonical leaf module. Those historical OS cases were not rerun on the rebased head. No broad OS suite, root-account execution or cross-platform local validation is claimed. Remaining differences and coverage limits Mutable sendfile buffers are snapshotted after argument/exporter conversion using RustPython's existing unlocked-buffer mechanism. CPython observes live buffers, so concurrent mutation semantics are not claimed identical. Shared integer overflow messages still name Rust primitive types. Pathname truncate still uses open/set_len, retaining existing permission/race/negative-length differences. The internal FileIO borrowed-descriptor helper remains unchanged. getlogin still copies libc's non-reentrant storage. Fork warnings occur after child creation; warning-as-error can hide the returned child/master descriptor, as in final CPython's ordering. No local signal injection, fork, concurrent mutation, invalid-FD or full sendfile fixture tests were run. macOS/Windows/WASI paths require hosted validation. An environment-dependent getlogin skip is reported separately from passes.

Open Graph Description: Summary Align OS argument conversion and timestamp protocols with CPython 3.15.0, preserving integer/ns semantics from #9116. Use raw-descriptor syscall entrypoints for Python-supplied descriptors...

X Description: Summary Align OS argument conversion and timestamp protocols with CPython 3.15.0, preserving integer/ns semantics from #9116. Use raw-descriptor syscall entrypoints for Python-supplied descriptors...

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

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:b701e205-244e-db2b-bc50-495cf14eb9eb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8CC4:11EACE:3494EA0:46318A5:6B01FE92
html-safe-nonce7d068005fdf44f55536ac8d0a06b85f751ca21ad0a39727e8681ee760914db11
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0M0OjExRUFDRTozNDk0RUEwOjQ2MzE4QTU6NkIwMUZFOTIiLCJ2aXNpdG9yX2lkIjoiNzcxOTQ5OTAwMjQxNjMzMjQzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac26e82756702202442343537c22c2aef3826942260e33b4989c894174d61be2d5
hovercard-subject-tagpull_request:4871015772
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/9146/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 Align OS argument conversion and timestamp protocols with CPython 3.15.0, preserving integer/ns semantics from #9116. Use raw-descriptor syscall entrypoints for Python-supplied descriptors...
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/9146/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9146%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%2F9146%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/9146/files
Reloadhttps://github.com/RustPython/RustPython/pull/9146/files
Reloadhttps://github.com/RustPython/RustPython/pull/9146/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/os-platform-315https://github.com/youknowdot/RustPython/tree/split/os-platform-315
Conversation 7 https://github.com/RustPython/RustPython/pull/9146
Commits 2 https://github.com/RustPython/RustPython/pull/9146/commits
Checks 29 https://github.com/RustPython/RustPython/pull/9146/checks
Files changed https://github.com/RustPython/RustPython/pull/9146/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9146/files
Align OS argument conversion and syscall handling with Python 3.15 https://github.com/RustPython/RustPython/pull/9146/files#top
Show all changes 2 commits https://github.com/RustPython/RustPython/pull/9146/files
84d5951 Align OS argument conversion and syscall handling with Python 3.15 youknowdot Oct 15, 2026 https://github.com/RustPython/RustPython/pull/9146/commits/84d59515bb4aa99766109a30b123b89e2dc2b866
948ebad Import canonical root-user test support for OS package youknowdot Oct 15, 2026 https://github.com/RustPython/RustPython/pull/9146/commits/948ebad7a7e6be094e63445fc13a9870527172de
Clear filters https://github.com/RustPython/RustPython/pull/9146/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9146/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9146/files
os.py https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
__init__.py https://github.com/RustPython/RustPython/pull/9146/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
__init__.py https://github.com/RustPython/RustPython/pull/9146/files#diff-fe4ed243a3dfa49664121303f2f48c2bd165b583337aa638bd81e6f66831e007
test_os.py https://github.com/RustPython/RustPython/pull/9146/files#diff-0c3c0e7d77a166e9089c5ddcc9d2db7c4fab9528044dec1fda4b3a6be569f784
test_posix.py https://github.com/RustPython/RustPython/pull/9146/files#diff-c2ffce99c501f7f4b6bde21947391671e95f592edcdf8bddbe4706a5c59d4417
test_windows.py https://github.com/RustPython/RustPython/pull/9146/files#diff-26bd3cf6203de4fc30cd17b5b5a2c0b98baeac19f904d122ec19d2fa3868cd72
utils.py https://github.com/RustPython/RustPython/pull/9146/files#diff-3921514081fa6b5ef8698eabb2a4b1609e7b88ae57d94036b73e7d15ecfa475a
crt_fd.rs https://github.com/RustPython/RustPython/pull/9146/files#diff-ff82b67fc4d8cf44a1248a541dbf04dca2c5554aaaaf76d169327f8930f004c4
posix.rs https://github.com/RustPython/RustPython/pull/9146/files#diff-c4d8d17cd194261af90a2541465d39d6a285b66572131399a8690bd4c7bd599a
os.rs https://github.com/RustPython/RustPython/pull/9146/files#diff-3a1b2246dc47369778bf6889ee62be670eee468a599dee319ca981ead50d686a
posix.rs https://github.com/RustPython/RustPython/pull/9146/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
posix_compat.rs https://github.com/RustPython/RustPython/pull/9146/files#diff-a9c143cbdfa49e86335b886d96cb054a6c9e103d340641a00a43de92f7256d97
cmd_migrate.py https://github.com/RustPython/RustPython/pull/9146/files#diff-c3593c79f94254515dba475389b7f38cfa3d73a1219d351d4713b7495cbd62ff
test_migrate.py https://github.com/RustPython/RustPython/pull/9146/files#diff-9787c156ccb8255454785fdd3c27453e6e86cb291caf6a7280684792c8612e43
Lib/os.pyhttps://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
View file https://github.com/youknowdot/RustPython/blob/948ebad7a7e6be094e63445fc13a9870527172de/Lib/os.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9146/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/RustPython/RustPython/pull/9146/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
Lib/test/support/__init__.pyhttps://github.com/RustPython/RustPython/pull/9146/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
View file https://github.com/youknowdot/RustPython/blob/948ebad7a7e6be094e63445fc13a9870527172de/Lib/test/support/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9146/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9146/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/RustPython/RustPython/pull/9146/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/RustPython/RustPython/pull/9146/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/RustPython/RustPython/pull/9146/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
Lib/test/test_os/__init__.pyhttps://github.com/RustPython/RustPython/pull/9146/files#diff-fe4ed243a3dfa49664121303f2f48c2bd165b583337aa638bd81e6f66831e007
View file https://github.com/youknowdot/RustPython/blob/948ebad7a7e6be094e63445fc13a9870527172de/Lib/test/test_os/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9146/{{ revealButtonHref }}
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 16, 2026https://github.com/RustPython/RustPython/pull/9146/files#r4289908819
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9146/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9146/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9146/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.