-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Feature
https://github.com/RustPython/RustPython/blob/main/vm/src/stdlib/builtins.rs#L899-L919
We should compare between class (invoked by metaclass) and classcell's internal contents before exiting __build_class__
At now we manually set classcell's internal contents with class, but this should be done in type.__new__
Python Documentation
- Issue 23722: During metaclass.init, super() of the constructed class does not work - Python tracker
- https://github.com/python/cpython/blob/3.10/Objects/typeobject.c#L3030-L3056
- https://github.com/python/cpython/blob/3.10/Python/bltinmodule.c#L225-L242)
Related test cases
test_super.pytest___classcell___overwritetest___classcell___missingtest___classcell___wrong_celltest___class___newtest___class___delayed
Metadata
Metadata
Assignees
Labels
No labels