Title: Unify nul errors by joshuamegnauth54 · Pull Request #8339 · RustPython/RustPython · GitHub
Open Graph Title: Unify nul errors by joshuamegnauth54 · Pull Request #8339 · RustPython/RustPython
X Title: Unify nul errors by joshuamegnauth54 · Pull Request #8339 · RustPython/RustPython
Description: Part of #8245 to reduce the amount of work needed to review. I simplified the embedded nul errors by forwarding to the implementations in vm::exceptions. Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Bug Fixes Standardized Python exceptions for embedded NUL characters and NUL bytes across path handling, codecs, text I/O, environment/process APIs, multiprocessing semaphores, OS/system calls, and network/SSL hostname/cipher handling. Introduced dedicated NUL-focused exception helpers (including NUL byte variants) and updated mappings to raise the correct error type (TypeError vs ValueError) for NUL-containing inputs. Improved error propagation in time and sound operations by preserving underlying failure details instead of generic embedded-NUL messages.
Open Graph Description: Part of #8245 to reduce the amount of work needed to review. I simplified the embedded nul errors by forwarding to the implementations in vm::exceptions. Closes #xxxx This PR follows our AI po...
X Description: Part of #8245 to reduce the amount of work needed to review. I simplified the embedded nul errors by forwarding to the implementations in vm::exceptions. Closes #xxxx This PR follows our AI po...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8339
X: @github
Domain: Github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0b476fe4-25de-967f-d713-b42ef6d1c62b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A4CC:2259B6:ADA47D:FAC371:6A631B56 |
| html-safe-nonce | 4e4e380ae346e436144f4508df1597ff863c67396410a3cb97076faf675c4205 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNENDOjIyNTlCNjpBREE0N0Q6RkFDMzcxOjZBNjMxQjU2IiwidmlzaXRvcl9pZCI6IjQ5NjY3NjY3ODQ5MzcxMzkwMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 377f76a2271b8a11686070d899a6f6a418999463790e9cd9a9adfa15f96e02ea |
| hovercard-subject-tag | pull_request:4093941580 |
| 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/8339/files |
| twitter:image | https://avatars.githubusercontent.com/u/48846352?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/48846352?s=400&v=4 |
| og:image:alt | Part of #8245 to reduce the amount of work needed to review. I simplified the embedded nul errors by forwarding to the implementations in vm::exceptions. Closes #xxxx This PR follows our AI po... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6 |
| 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 | 6a93e25585f487ddff9e3996c06d5b869d6e1828 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width