Title: Match epoll.modify keyword and eventmask conversion contracts by youknowdot · Pull Request #9554 · RustPython/RustPython · GitHub
Open Graph Title: Match epoll.modify keyword and eventmask conversion contracts by youknowdot · Pull Request #9554 · RustPython/RustPython
X Title: Match epoll.modify keyword and eventmask conversion contracts by youknowdot · Pull Request #9554 · RustPython/RustPython
Description: Summary Accept both fd and eventmask as positional or keyword arguments to select.epoll.modify, matching CPython 3.15.0's (self, /, fd, eventmask) signature. Bind raw arguments before calling user code. After argument-shape validation, retain the order: file-descriptor conversion, event-mask __index__ conversion, any range warning, closed-epoll check, existing host operation. The mask uses the low 32 bits; values outside [-2**31, 2**32 - 1] emit DeprecationWarning("integer value out of range") at stack level 1. A warning promoted to an exception returns before the closed check or syscall. No descriptor ownership changes are introduced. This changes only modify; it is independent of #9553 (unregister) and does not change register. The small mask helper is local to select; no shared-converter refactor is included. Existing shared Fildes differences, including the missing RuntimeWarning for a direct bool descriptor, are not addressed. Reference CPython 3.15.0 select Clinic wrapper and PyLong_AsNativeBytes. Validation Independent source review, normal commit hooks and git diff --check passed. Added a pure Rust metadata test for both required parameters, arity, keyword-call flag and generated signature. It has not yet been compiled or executed locally. Offline workspace/C-API tests, Clippy and test_epoll attempts were blocked before compilation by the unavailable parking_lot_core git dependency. No local compilation or runtime pass is claimed. Existing Lib/test/test_epoll.py covers positional modify and closed-epoll behavior. It does not establish new keyword handling, mask boundaries, warning-as-error behavior or callback ordering by execution; those remain runtime validation gaps. No unsafe descriptor probes were run. No Lib tests or workflows were changed. Generic binder diagnostic wording and all combinations of malformed-call error priorities are not claimed identical to CPython. Draft pending exact-head CI and its actual --signature report. AI assistance: OpenAI Codex performed source investigation, implementation, metadata-test drafting and review.
Open Graph Description: Summary Accept both fd and eventmask as positional or keyword arguments to select.epoll.modify, matching CPython 3.15.0's (self, /, fd, eventmask) signature. Bind raw arguments before calling u...
X Description: Summary Accept both fd and eventmask as positional or keyword arguments to select.epoll.modify, matching CPython 3.15.0's (self, /, fd, eventmask) signature. Bind raw arguments before calli...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9554
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3486946c-8bbd-b55e-5ef1-e15d6e552db9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9DF2:2BE220:3450815:45C1C1A:6B020235 |
| html-safe-nonce | e65bf54c7a4073d4e780ddaec3acf7dff535bac3cd2015ef37a1422fb1e79cbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REYyOjJCRTIyMDozNDUwODE1OjQ1QzFDMUE6NkIwMjAyMzUiLCJ2aXNpdG9yX2lkIjoiNDkyNjY1OTIwMzUxNjQ2NTcxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1126744552a9ad994e259030efe36f6d80fc7a217fc224475c2133936abac0c1 |
| hovercard-subject-tag | pull_request:5128021253 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9554/files |
| twitter:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| og:image:alt | Summary Accept both fd and eventmask as positional or keyword arguments to select.epoll.modify, matching CPython 3.15.0's (self, /, fd, eventmask) signature. Bind raw arguments before calling u... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width