From e74f52b76c2be9aefca689e34cd05f8f64be02f8 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 27 Feb 2014 22:49:47 +0200 Subject: namedtuple: Inherit unary/binary ops from tuple base class. --- py/objtuple.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/objtuple.h') diff --git a/py/objtuple.h b/py/objtuple.h index 6ff38c10eb..c310bfb7d5 100644 --- a/py/objtuple.h +++ b/py/objtuple.h @@ -5,3 +5,5 @@ typedef struct _mp_obj_tuple_t { } mp_obj_tuple_t; void tuple_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind); +mp_obj_t tuple_unary_op(int op, mp_obj_t self_in); +mp_obj_t tuple_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs); -- cgit v1.2.3