René's URL Explorer Experiment


Title: Align POSIX control argument handling with Python 3.15 by youknowdot · Pull Request #9664 · RustPython/RustPython · GitHub

Open Graph Title: Align POSIX control argument handling with Python 3.15 by youknowdot · Pull Request #9664 · RustPython/RustPython

X Title: Align POSIX control argument handling with Python 3.15 by youknowdot · Pull Request #9664 · RustPython/RustPython

Description: Summary Align the related fcntl/termios control argument paths with CPython 3.15 while reusing typed/derived binding and existing buffer/descriptor helpers. Prefer the integer protocol over buffer fallback in fcntl/ioctl and preserve conversion/exporter exceptions. Share unsigned-mask conversion and the 3.15 out-of-range DeprecationWarning behavior. Convert ioctl request and mutation flag before inspecting its argument, retain raw argument roots, release immutable exports before the syscall, and use the existing guarded scratch buffer for writable input without holding its lock across a detached syscall. Validate lockf arguments in CPython order and return None from flock/lockf. Convert termios descriptors before later arguments, read attribute-list fields after prior conversion callbacks, use native signed narrowing, and validate control characters before libc speed checks. Preserve sequential winsize conversion, I/O-before-range-check ordering, and existing pixel dimensions. Only four production Rust files changed; no tests or snippets edited. Existing primitive integer conversion remains in use, so this does not introduce another per-function FuncArgs parser or duplicate shared argument machinery. Reference Compared against CPython v3.15.0 Modules/fcntlmodule.c, Modules/termios.c, their generated Clinic bindings, and Python/getargs.c. Validation Validated against base 0bdba72ff9a3ce7187798bb77ee6b5384481259c. Before publication, main advanced to 0b081b0283987c7b2d79327dd481f403d515580b with only unrelated Windows winreg changes (#9589). The four-file patch is identical against that newer main; the newer main was not locally rebuilt. Focused VM, host_env, and stdlib threading cargo check --offline: passed. Matching strict cargo clippy --offline -- -D warnings: passed. Independent source review, formatting, git diff --check, and normal repository pre-commit hooks: passed. Bounded CPython 3.15 reference probes used owned temporary files and PTYs to check conversion/callback order, warning boundaries, None returns, and native narrowing. No real terminal settings or undersized ioctl buffers were used. Native RustPython execution, full workspace/C-API tests, and cross-platform builds were not run under the current task restrictions. Hosted CI remains required. Generic C-int/C-long overflow diagnostic wording is unchanged. Platform-specific native layouts were reviewed in source but not exercised outside Linux. AI assistance OpenAI Codex assisted with source comparison, implementation, review, and validation. The model version is not exposed by this environment.

Open Graph Description: Summary Align the related fcntl/termios control argument paths with CPython 3.15 while reusing typed/derived binding and existing buffer/descriptor helpers. Prefer the integer protocol over buffer...

X Description: Summary Align the related fcntl/termios control argument paths with CPython 3.15 while reusing typed/derived binding and existing buffer/descriptor helpers. Prefer the integer protocol over buffer...

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

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:a589ddad-8ad1-c55e-f860-a7e62c6b9e13
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8758:1F927B:1493C3E:1B2ADD2:6B01F39B
html-safe-nonce50d14e609e35e0d2960f5edf98d1c083c3a6e6f8337aa3f7523b65f0edded969
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzU4OjFGOTI3QjoxNDkzQzNFOjFCMkFERDI6NkIwMUYzOUIiLCJ2aXNpdG9yX2lkIjoiNjA1MTA5Mzc1MzQxNzAzNjcwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace47fd38498dd700f69720b41d019e0d969b5e8eeeed6e4bfbe9cadb89d57254e
hovercard-subject-tagpull_request:5145622690
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/9664/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 the related fcntl/termios control argument paths with CPython 3.15 while reusing typed/derived binding and existing buffer/descriptor helpers. Prefer the integer protocol over buffer...
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/9664/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9664%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%2F9664%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/9664/files
Reloadhttps://github.com/RustPython/RustPython/pull/9664/files
Reloadhttps://github.com/RustPython/RustPython/pull/9664/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-posix-control-conversion-order-315https://github.com/youknowdot/RustPython/tree/fix-posix-control-conversion-order-315
Conversation 4 https://github.com/RustPython/RustPython/pull/9664
Commits 2 https://github.com/RustPython/RustPython/pull/9664/commits
Checks 27 https://github.com/RustPython/RustPython/pull/9664/checks
Files changed https://github.com/RustPython/RustPython/pull/9664/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9664/files
Align POSIX control argument handling with Python 3.15 https://github.com/RustPython/RustPython/pull/9664/files#top
Show all changes 2 commits https://github.com/RustPython/RustPython/pull/9664/files
105e793 Align POSIX control argument conversion with Python 3.15 youknowdot Nov 3, 2026 https://github.com/RustPython/RustPython/pull/9664/commits/105e7937778d0bde621841551d621d9c7a2072a4
4712df2 Normalize platform lock constant types youknowdot Nov 4, 2026 https://github.com/RustPython/RustPython/pull/9664/commits/4712df2c07ce2f63f0bb0868c0c4222d95f23b0f
Clear filters https://github.com/RustPython/RustPython/pull/9664/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9664/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9664/files
fcntl.rs https://github.com/RustPython/RustPython/pull/9664/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
termios.rs https://github.com/RustPython/RustPython/pull/9664/files#diff-99f18b026fed666d68940db9ac6b8c43144ca3f1bfda132dd348c3ad9dd84ce9
fcntl.rs https://github.com/RustPython/RustPython/pull/9664/files#diff-f24367c76fe0e3702bd85e14b9945f6f8c41d182a5775da079341204fd5e2f5f
termios.rs https://github.com/RustPython/RustPython/pull/9664/files#diff-f71c9947248d03cff69ec513944e7d52a21b63c8b48ebf54fee1eea4a9145b10
crates/host_env/src/fcntl.rshttps://github.com/RustPython/RustPython/pull/9664/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
View file https://github.com/youknowdot/RustPython/blob/4712df2c07ce2f63f0bb0868c0c4222d95f23b0f/crates/host_env/src/fcntl.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9664/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9664/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
https://github.com/RustPython/RustPython/pull/9664/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
https://github.com/RustPython/RustPython/pull/9664/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
https://github.com/RustPython/RustPython/pull/9664/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
https://github.com/RustPython/RustPython/pull/9664/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
crates/host_env/src/termios.rshttps://github.com/RustPython/RustPython/pull/9664/files#diff-99f18b026fed666d68940db9ac6b8c43144ca3f1bfda132dd348c3ad9dd84ce9
View file https://github.com/youknowdot/RustPython/blob/4712df2c07ce2f63f0bb0868c0c4222d95f23b0f/crates/host_env/src/termios.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9664/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9664/files#diff-99f18b026fed666d68940db9ac6b8c43144ca3f1bfda132dd348c3ad9dd84ce9
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9664/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9664/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.