Title: Add more int functions to the c-api by bschoenmaeckers · Pull Request #8159 · RustPython/RustPython · GitHub
Open Graph Title: Add more int functions to the c-api by bschoenmaeckers · Pull Request #8159 · RustPython/RustPython
X Title: Add more int functions to the c-api by bschoenmaeckers · Pull Request #8159 · RustPython/RustPython
Description: Summary by CodeRabbit New Features Expanded integer C API support with new PyLong_From* constructors for doubles, signed/unsigned 32- and 64-bit values, native-endian byte buffers, C strings (optional end-pointer), and void*/pointer-sized values. Added a wider set of PyLong_As* conversions (typed signed/unsigned, size types, and mask variants), replacing PyLong_AsLong. Bug Fixes Improved unsigned mask extraction for negative integers using low-order digits. Tests Extended C/API conversion coverage for sentinel/error-value behavior and added large-integer roundtrip assertions.
Open Graph Description: Summary by CodeRabbit New Features Expanded integer C API support with new PyLong_From* constructors for doubles, signed/unsigned 32- and 64-bit values, native-endian byte buffers, C strings (opt...
X Description: Summary by CodeRabbit New Features Expanded integer C API support with new PyLong_From* constructors for doubles, signed/unsigned 32- and 64-bit values, native-endian byte buffers, C strings (opt...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8159
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c1d821b7-57cd-00ca-e21e-ee16bdcdc3b1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 993E:152A69:1232DD:17F35E:6A5AB205 |
| html-safe-nonce | 9755f60aec6e54d9d189590c507e4789085f090cc31969965118025c8f5dfce2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTNFOjE1MkE2OToxMjMyREQ6MTdGMzVFOjZBNUFCMjA1IiwidmlzaXRvcl9pZCI6IjQzNTQwMzY3MTc0NDU2MjQzMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bee0b4f86e4278d560dcb5d61ae89cb3ea22faeea1f8a612fd0962b8f7565fb3 |
| hovercard-subject-tag | pull_request:3927379737 |
| 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/8159/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 integer C API support with new PyLong_From* constructors for doubles, signed/unsigned 32- and 64-bit values, native-endian byte buffers, C strings (opt... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 21c53da6db0c40484841ba32fe19ecf485e7e734334faab487cd59d884d2bb33 |
| 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 | 6e85f20f54e1147d8162094880590864abefff6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width