Skip to content

Need compare between metaclass and internal contents of classcell in __build_class__ #3865

Description

@Snowapril

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

Related test cases

  • test_super.py
    • test___classcell___overwrite
    • test___classcell___missing
    • test___classcell___wrong_cell
    • test___class___new
    • test___class___delayed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions