diff options
Diffstat (limited to 'py')
| -rw-r--r-- | py/objdict.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/objdict.c b/py/objdict.c index 451e87329..692a7de42 100644 --- a/py/objdict.c +++ b/py/objdict.c @@ -521,7 +521,8 @@ static mp_obj_t dict_view_unary_op(mp_unary_op_t op, mp_obj_t o_in) { if (op == MP_UNARY_OP_HASH && o->kind == MP_DICT_VIEW_VALUES) { return MP_OBJ_NEW_SMALL_INT((mp_uint_t)o_in); } - return MP_OBJ_NULL; + // delegate all other ops to dict unary op handler + return dict_unary_op(op, o->dict); } static mp_obj_t dict_view_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) { |
