aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-28 23:15:12 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-28 23:15:12 +1000
commit2eb0170157bb0ce5fe1afc8563b4926b5dcb15bf (patch)
treec8101c9ee5ec468c2810c33f3f872fae910ff532 /py/objtype.c
parent2c7a3061d519de269815663458d82e053978d835 (diff)
py/objtype: Remove TODO about storing attributes to classes.
This behaviour is tested in basics/class_store.py and follows CPython.
Diffstat (limited to 'py/objtype.c')
-rw-r--r--py/objtype.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/py/objtype.c b/py/objtype.c
index 67ba772f7..f84e2d746 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -1018,8 +1018,6 @@ STATIC void type_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
} else {
// delete/store attribute
- // TODO CPython allows STORE_ATTR to a class, but is this the correct implementation?
-
if (self->locals_dict != NULL) {
assert(self->locals_dict->base.type == &mp_type_dict); // MicroPython restriction, for now
mp_map_t *locals_map = &self->locals_dict->map;