aboutsummaryrefslogtreecommitdiff
path: root/tests/basics/class_dict.py
AgeCommit message (Collapse)Author
2020-10-10py/objtype: Handle __dict__ attribute when type has no locals.Jim Mussared
2020-06-10py/objtype: Add __dict__ attribute for class objects.Andrew Leech
The behavior mirrors the instance object dict attribute where a copy of the local attributes are provided (unless the dict is read-only, then that dict itself is returned, as an optimisation). MicroPython does not support modifying this dict because the changes will not be reflected in the class. The feature is only enabled if MICROPY_CPYTHON_COMPAT is set, the same as the instance version.