py/objtype: Remove TODO about storing attributes to classes.
This behaviour is tested in basics/class_store.py and follows CPython.
This commit is contained in:
parent
2c7a3061d5
commit
2eb0170157
|
@ -1018,8 +1018,6 @@ STATIC void type_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
|
||||||
} else {
|
} else {
|
||||||
// delete/store attribute
|
// delete/store attribute
|
||||||
|
|
||||||
// TODO CPython allows STORE_ATTR to a class, but is this the correct implementation?
|
|
||||||
|
|
||||||
if (self->locals_dict != NULL) {
|
if (self->locals_dict != NULL) {
|
||||||
assert(self->locals_dict->base.type == &mp_type_dict); // MicroPython restriction, for now
|
assert(self->locals_dict->base.type == &mp_type_dict); // MicroPython restriction, for now
|
||||||
mp_map_t *locals_map = &self->locals_dict->map;
|
mp_map_t *locals_map = &self->locals_dict->map;
|
||||||
|
|
Loading…
Reference in New Issue