Title: Add codecs support to c-api by bschoenmaeckers · Pull Request #8267 · RustPython/RustPython · GitHub
Open Graph Title: Add codecs support to c-api by bschoenmaeckers · Pull Request #8267 · RustPython/RustPython
X Title: Add codecs support to c-api by bschoenmaeckers · Pull Request #8267 · RustPython/RustPython
Description: Summary by CodeRabbit New Features Expanded the C API with codec registration/discovery, encode/decode, incremental encoder/decoder, and stream reader/writer support. Added codec error-handler registration/lookup, including built-in strategies (strict/ignore/replace and variants). Exposed a public codecs module in the C API. Bug Fixes Standardized handling of C-string inputs (null/UTF-8) across C-API entry points for more consistent error propagation and behavior. Improved C-API object pointer handling for safer borrowing/casting at the FFI boundary. Chores Minor formatting/comment cleanup.
Open Graph Description: Summary by CodeRabbit New Features Expanded the C API with codec registration/discovery, encode/decode, incremental encoder/decoder, and stream reader/writer support. Added codec error-handler re...
X Description: Summary by CodeRabbit New Features Expanded the C API with codec registration/discovery, encode/decode, incremental encoder/decoder, and stream reader/writer support. Added codec error-handler re...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8267
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6be09f7a-aa1d-5bc7-142c-b1eb7abbf083 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B64C:6464A:1BC85CE:27E8C5D:6A58CE21 |
| html-safe-nonce | 9f0b98e35a564b22ad1a87a1cb7283bdbbc4e5758456cee358838d0eea23bd0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjRDOjY0NjRBOjFCQzg1Q0U6MjdFOEM1RDo2QTU4Q0UyMSIsInZpc2l0b3JfaWQiOiI4MzUyMTI0NTg5OTQ0ODY4MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 10ddc4d0e426f8fdbd2722417fae107ccc2ec88c2faa4fc028ddb4027c0e6f9f |
| hovercard-subject-tag | pull_request:4043977151 |
| 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/8267/files |
| twitter:image | https://avatars.githubusercontent.com/u/7943856?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7943856?s=400&v=4 |
| og:image:alt | Summary by CodeRabbit New Features Expanded the C API with codec registration/discovery, encode/decode, incremental encoder/decoder, and stream reader/writer support. Added codec error-handler re... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width