namedtuple: Inherit unary/binary ops from tuple base class.

This commit is contained in:
Paul Sokolovsky
2014-02-27 22:49:47 +02:00
parent d86d22e1e7
commit e74f52b76c
4 changed files with 13 additions and 5 deletions

View File

@@ -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);