py/objarray: memoryview_attr: Call mp_load_method_maybe_from_locals_dict().
Now it should be called explicitly from ->attr to lookup in ->locals_dict
(->locals_dict is tried only if no ->attr).
@@ -267,6 +267,8 @@ STATIC void memoryview_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
if (attr == MP_QSTR_itemsize) {
mp_obj_array_t *self = MP_OBJ_TO_PTR(self_in);
dest[0] = MP_OBJ_NEW_SMALL_INT(mp_binary_get_size('@', self->typecode & TYPECODE_MASK, NULL));
+ } else {
+ mp_load_method_maybe_from_locals_dict(self_in, attr, dest);
}
}
#endif
