diff options
author | Damien George <damien.p.george@gmail.com> | 2018-05-25 10:59:40 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-05-25 10:59:40 +1000 |
commit | dfeaea144168c3ec3b4ec513cfb201ce93f99f5e (patch) | |
tree | 992f2101b5782d0423db9023a8c56fac413463e6 /py/objtype.c | |
parent | 15ddc2043687942c68d9ab54176fd837f44d3083 (diff) | |
download | micropython-dfeaea144168c3ec3b4ec513cfb201ce93f99f5e.tar.gz micropython-dfeaea144168c3ec3b4ec513cfb201ce93f99f5e.zip |
py/objtype: Remove TODO comment about needing to check for property.
Instance members are always treated as values, even if they are properties.
A test is added to show this is the case.
Diffstat (limited to 'py/objtype.c')
-rw-r--r-- | py/objtype.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/py/objtype.c b/py/objtype.c index 7df349ce9b..2ec27c762c 100644 --- a/py/objtype.c +++ b/py/objtype.c @@ -562,7 +562,6 @@ STATIC void mp_obj_instance_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *des mp_map_elem_t *elem = mp_map_lookup(&self->members, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP); if (elem != NULL) { // object member, always treated as a value - // TODO should we check for properties? dest[0] = elem->value; return; } |