Title: Add per-type vectorcall for builtin constructors by youknowone · Pull Request #7407 · RustPython/RustPython · GitHub
Open Graph Title: Add per-type vectorcall for builtin constructors by youknowone · Pull Request #7407 · RustPython/RustPython
X Title: Add per-type vectorcall for builtin constructors by youknowone · Pull Request #7407 · RustPython/RustPython
Description: close #7362 Add vectorcall dispatch in vectorcall_type to check each type's own slots.vectorcall before falling back to PyType::call. Clear vectorcall when init or new is overridden in update_slot to ensure subclass correctness. Implement per-type vectorcall for 12 builtin types: Pattern A (skip args.clone): dict, set, list, bytearray Pattern B (skip dispatch): int, float, str, bool, tuple, frozenset, bytes, complex Summary by CodeRabbit Bug Fixes Improved error reporting for memory mapping resize operations on Unix and Windows. Fixed environment variable handling on Windows to properly emit terminator sequences when no environment entries exist. Prevented instantiation of sys.getwindowsversion, now raises TypeError. Removed deprecated Windows socket error code from public error mappings.
Open Graph Description: close #7362 Add vectorcall dispatch in vectorcall_type to check each type's own slots.vectorcall before falling back to PyType::call. Clear vectorcall when init or new is overridden in update_s...
X Description: close #7362 Add vectorcall dispatch in vectorcall_type to check each type's own slots.vectorcall before falling back to PyType::call. Clear vectorcall when init or new is overridden in upda...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7407
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:946c0b18-e8ba-8f97-6894-8c4ad8c8ff9c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94C2:2AE2E2:198C016:20F3BF5:6A5C62E5 |
| html-safe-nonce | e857148b33f8de732ae4f2bcfec1c3c11575efc5af683f366828ac5d70eb95b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEMyOjJBRTJFMjoxOThDMDE2OjIwRjNCRjU6NkE1QzYyRTUiLCJ2aXNpdG9yX2lkIjoiMTQ4NDU5ODEzNTMyNjc5NDQ2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4cdd15d97d24fc1d6f6d12df07368cacb612f7b93d846599f4d50ef0109cc818 |
| hovercard-subject-tag | pull_request:3389249293 |
| 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/7407/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | close #7362 Add vectorcall dispatch in vectorcall_type to check each type's own slots.vectorcall before falling back to PyType::call. Clear vectorcall when init or new is overridden in update_s... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width