summaryrefslogtreecommitdiff
path: root/py/objtuple.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-09 21:43:51 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-09 21:43:51 +0000
commit004cdcebfe03d52ca9da3b2515c203910502dbba (patch)
treed4e36873836f0eee94d606f8ca87a246ea668ccc /py/objtuple.c
parent062478e66d03cc59ed73484a3032ef5f08db12a4 (diff)
py: Implement base class lookup, issubclass, isinstance.
Diffstat (limited to 'py/objtuple.c')
-rw-r--r--py/objtuple.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objtuple.c b/py/objtuple.c
index 0050fc5ea..7685cc449 100644
--- a/py/objtuple.c
+++ b/py/objtuple.c
@@ -136,6 +136,7 @@ mp_obj_t mp_obj_new_tuple_reverse(uint n, const mp_obj_t *items) {
}
void mp_obj_tuple_get(mp_obj_t self_in, uint *len, mp_obj_t **items) {
+ assert(MP_OBJ_IS_TYPE(self_in, &tuple_type));
mp_obj_tuple_t *self = self_in;
*len = self->len;
*items = &self->items[0];