Title: feat(vm/slot): implement `Py_TPFLAGS_MANAGED_DICT` for class objects by ever0de · Pull Request #5949 · RustPython/RustPython · GitHub
Open Graph Title: feat(vm/slot): implement `Py_TPFLAGS_MANAGED_DICT` for class objects by ever0de · Pull Request #5949 · RustPython/RustPython
X Title: feat(vm/slot): implement `Py_TPFLAGS_MANAGED_DICT` for class objects by ever0de · Pull Request #5949 · RustPython/RustPython
Description: Reference https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda601a47a/Objects/typeobject.c#L4264-L4310 https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda601a47a/Objects/typeobject.c#L3658-L3683 https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda601a47a/Objects/typeobject.c#L3906-L3946 MANAGED_DICT: https://github.com/python/cpython/blob/49365bd110a254a6a304d2f880482bfeb2e4490d/Include/object.h#L532-L535 Waiting for CPython Issue(PR) python/cpython#136535 #5949 (comment) Summary by CodeRabbit New Features Improved handling of type attributes for custom classes, ensuring correct support for types with and without __slots__. Bug Fixes Fixed an issue where types with __slots__ were incorrectly assigned dictionary-related flags. Chores Updated internal flags to better represent type characteristics.
Open Graph Description: Reference https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda601a47a/Objects/typeobject.c#L4264-L4310 https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda6...
X Description: Reference https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda601a47a/Objects/typeobject.c#L4264-L4310 https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda6...
Opengraph URL: https://github.com/RustPython/RustPython/pull/5949
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:d05c3845-61dc-6cf7-a834-aee5129817df |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9816:1D772C:1B6A8D8:2455592:696AF970 |
| html-safe-nonce | 808e13353970361e5029e5e96610aa801bfdb6168c7baa56739a48316155841b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODE2OjFENzcyQzoxQjZBOEQ4OjI0NTU1OTI6Njk2QUY5NzAiLCJ2aXNpdG9yX2lkIjoiNTI5MTM0NDQ5MzA3ODc1Njk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d1fb00ad339b3c9f85899401fb6c1239579c768fc10f74c583353a6915a52313 |
| hovercard-subject-tag | pull_request:2659546398 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/5949/checks |
| twitter:image | https://avatars.githubusercontent.com/u/27040963?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/27040963?s=400&v=4 |
| og:image:alt | Reference https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda601a47a/Objects/typeobject.c#L4264-L4310 https://github.com/python/cpython/blob/cba2974a545c9d35f15f25575c214fbda6... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-cache |
| 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 full-width-p-0 |
| disable-turbo | false |
| 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