Title: Preserve symbolic buffer defaults in IO text signatures by youknowdot · Pull Request #9744 · RustPython/RustPython · GitHub
Open Graph Title: Preserve symbolic buffer defaults in IO text signatures by youknowdot · Pull Request #9744 · RustPython/RustPython
X Title: Preserve symbolic buffer defaults in IO text signatures by youknowdot · Pull Request #9744 · RustPython/RustPython
Description: Summary Preserve CPython 3.15's symbolic DEFAULT_BUFFER_SIZE default in BufferedReader, BufferedWriter, BufferedRandom, and BufferedRWPair text signatures. Only the three existing FromArgs declarations' metadata changes. Runtime defaults remain 131072 (128 * 1024); conversion order, argument types, and costs are unchanged. No new conversion mechanism or hand-written signature override is introduced. Regression assertions check raw constructor signatures, the positional-only distinction for BufferedRWPair, and inspect.signature resolving the module constant. Independent main-based branch; no dependency on #9741 or #9742. Reference CPython v3.15.0 Modules/_io/clinic/bufferedio.c.h, commit d220409a13b77de7a6c30abe16ea90db01528edc. The full signature snippet also passes on CPython 3.15.1. Validation Regression assertion fails on the previous RustPython binary. Independent source review completed. Workspace Rust tests and strict all-target Clippy passed. C-API Rust tests and strict all-target Clippy passed. Release build passed. Full builtin_signature.py passed on RustPython and CPython 3.15.1; RustPython pytest wrapper passed. RustPython test_io test_inspect: 1,425 tests, 99 skipped, all 10 test files passed. Cross-platform CI pending. Summary by CodeRabbit Updates Buffered reader, writer, random-access, and reader/writer-pair signatures now display the default buffer size as DEFAULT_BUFFER_SIZE, rather than a hard-coded numeric expression. The default remains 131072, so runtime behavior is unchanged. Tests Added checks that the displayed signatures use DEFAULT_BUFFER_SIZE and that inspect.signature resolves it to _io.DEFAULT_BUFFER_SIZE. Coverage includes the buffered reader, writer, random-access stream, and positional-only reader/writer-pair arguments.
Open Graph Description: Summary Preserve CPython 3.15's symbolic DEFAULT_BUFFER_SIZE default in BufferedReader, BufferedWriter, BufferedRandom, and BufferedRWPair text signatures. Only the three existing FromArgs decl...
X Description: Summary Preserve CPython 3.15's symbolic DEFAULT_BUFFER_SIZE default in BufferedReader, BufferedWriter, BufferedRandom, and BufferedRWPair text signatures. Only the three existing FromArgs ...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9744
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:36f46f82-a61f-1fb1-7c88-47ac0e18bd65 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AECC:1F2F:17FF66A:1FE87A7:6B01F9A9 |
| html-safe-nonce | 85dc617bc925b319a0dd0d0a25eacd4ccdc03735e625a82a110d96e396adf63d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUNDOjFGMkY6MTdGRjY2QToxRkU4N0E3OjZCMDFGOUE5IiwidmlzaXRvcl9pZCI6IjM3MDY1NTkxMTQ3MDU1MDA1ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9fccffc6b9182afc2e83bcb87789387537141ea128075c90be1fc9baabf4b093 |
| hovercard-subject-tag | pull_request:5208208532 |
| 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/9744/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 Preserve CPython 3.15's symbolic DEFAULT_BUFFER_SIZE default in BufferedReader, BufferedWriter, BufferedRandom, and BufferedRWPair text signatures. Only the three existing FromArgs decl... |
| 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 full-width |
| 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