Title: prefer nb_bool slot in try_to_bool instead of __bool__ by YashSuthar983 · Pull Request #6328 · RustPython/RustPython · GitHub
Open Graph Title: prefer nb_bool slot in try_to_bool instead of __bool__ by YashSuthar983 · Pull Request #6328 · RustPython/RustPython
X Title: prefer nb_bool slot in try_to_bool instead of __bool__ by YashSuthar983 · Pull Request #6328 · RustPython/RustPython
Description: Fixed: #6113 Summary by CodeRabbit Chores Improved boolean evaluation performance by adding a faster internal path for boolean checks. Bug Fixes Preserved and unified error behavior for invalid boolean/length results so type and value errors remain consistent. ✏️ Tip: You can customize this high-level summary in your review settings.
Open Graph Description: Fixed: #6113 Summary by CodeRabbit Chores Improved boolean evaluation performance by adding a faster internal path for boolean checks. Bug Fixes Preserved and unified error behavior for inval...
X Description: Fixed: #6113 Summary by CodeRabbit Chores Improved boolean evaluation performance by adding a faster internal path for boolean checks. Bug Fixes Preserved and unified error behavior for inval...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6328
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:55921c9e-f75e-56d8-49e2-2c5c61b41f58 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A826:10503:E84EF6:12C37A7:696B067F |
| html-safe-nonce | f4ef1536d00a0e73f9685b518bf616600735fafc40f13726af20817f2e070f3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODI2OjEwNTAzOkU4NEVGNjoxMkMzN0E3OjY5NkIwNjdGIiwidmlzaXRvcl9pZCI6IjI1MTIxMjY3NzY5MjU5NDc1MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f53d5ccf67809480f9984716fa163e1d289cbb539c302b857acb49c4c20e7d10 |
| hovercard-subject-tag | pull_request:3072836567 |
| 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/6328/files |
| twitter:image | https://avatars.githubusercontent.com/u/183753953?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/183753953?s=400&v=4 |
| og:image:alt | Fixed: #6113 Summary by CodeRabbit Chores Improved boolean evaluation performance by adding a faster internal path for boolean checks. Bug Fixes Preserved and unified error behavior for inval... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width