Title: Restore Python 3.15 TextIOWrapper chunk-size deletion semantics by youknowdot · Pull Request #9082 · RustPython/RustPython · GitHub
Open Graph Title: Restore Python 3.15 TextIOWrapper chunk-size deletion semantics by youknowdot · Pull Request #9082 · RustPython/RustPython
X Title: Restore Python 3.15 TextIOWrapper chunk-size deletion semantics by youknowdot · Pull Request #9082 · RustPython/RustPython
Description: Summary Restore final Python 3.15 TextIOWrapper._CHUNK_SIZE deletion behavior after the Python 3.14.8-specific change from #9071 landed alongside #8950. Check initialization and buffer attachment before rejecting deletion. Raise AttributeError("cannot delete attribute") for attached wrappers, including subclasses. Uninitialized and detached wrappers retain their precise ValueError contracts. Preserve every existing initialized, uninitialized, detached, ASCII-subclass, and non-ASCII-subclass regression case with exact final-reference exception types and messages. No skips or relaxed assertions are added. Leave assignment conversions, overflow/positive-size validation, and locking around the final write unchanged. No files under Lib/ are changed. This is one shared-main correction; it does not duplicate the fix across the existing leaf PRs. Reference: CPython v3.15.0 setter. Failure evidence The unrelated workflow-only #8958 fails the CPython 3.15 stdlib_io.py reference test on Windows and macOS. #9058 shows the same failure on Linux. The assertion was introduced by #9071, not the leaf changes. Other tests in those completed snippet jobs pass. Validation Candidate: ef1197a5e2477b719670768089033af1098a41ee, directly on main 06007c81fa99e813cbf4583dab326764ba0ef017. Normal commit hooks, whitespace checks, and independent source/coverage review pass. A certified, unpatched CPython build from the exact v3.15.0 source passes the bounded existing chunk-size cases. A separate 12-case in-memory probe confirms attached/closed/uninitialized/detached behavior for the base class and both subclass names. A fresh native interpreter build at ef1197a passes the same bounded existing cases and matches all 12 reference outcomes exactly. All workspace-package artifacts were cleared before rebuilding; the binary reports the expected commit and source/binary fingerprints were recorded. Warnings-denied VM-library and root-interpreter Clippy pass. No broad local suite was executed, and hosted cross-platform CI is pending. AI assistance OpenAI Codex assisted with diagnosis, implementation, independent review, and validation. The runtime does not expose a precise model identifier; the commit includes an Assisted-by trailer.
Open Graph Description: Summary Restore final Python 3.15 TextIOWrapper._CHUNK_SIZE deletion behavior after the Python 3.14.8-specific change from #9071 landed alongside #8950. Check initialization and buffer attachment ...
X Description: Summary Restore final Python 3.15 TextIOWrapper._CHUNK_SIZE deletion behavior after the Python 3.14.8-specific change from #9071 landed alongside #8950. Check initialization and buffer attachment ...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9082
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:e1a7ace1-6ed0-968d-92d6-75c155f6cc20 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D514:16E4ED:235F22:2C9FC5:6B01F3B2 |
| html-safe-nonce | 164b3eb4a15608f7b13a5462539d187a37445abb2324142e6e5d688f7e85acc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTE0OjE2RTRFRDoyMzVGMjI6MkM5RkM1OjZCMDFGM0IyIiwidmlzaXRvcl9pZCI6IjM0MzQzMjkyODcwMjc3MTcwNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 930b014bd5663077a7b6f0693798d256335f9ec2b0daba736fe1a40c57a7d4b4 |
| hovercard-subject-tag | pull_request:4816806147 |
| 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/9082/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 Restore final Python 3.15 TextIOWrapper._CHUNK_SIZE deletion behavior after the Python 3.14.8-specific change from #9071 landed alongside #8950. Check initialization and buffer attachment ... |
| 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