Skip to content
Snippets Groups Projects
Commit 806f4aef authored by Damien George's avatar Damien George
Browse files

py: Fix super() bug, where it didn't allow instance access.

This is a one-liner fix.  It gets the class-super.py test passing, but
is probably not a complete fix.
parent b33d72aa
No related branches found
No related tags found
No related merge requests found
......@@ -527,7 +527,7 @@ STATIC void super_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
assert(MP_OBJ_IS_TYPE(items[i], &mp_type_type));
mp_obj_t member = mp_obj_class_lookup((mp_obj_type_t*)items[i], attr);
if (member != MP_OBJ_NULL) {
class_convert_return_attr(self, member, dest);
class_convert_return_attr(self->obj, member, dest);
return;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment