summaryrefslogtreecommitdiffstatshomepage
path: root/py/objarray.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-21 19:42:43 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-21 19:42:43 +0100
commit6ac5dced2441bf63dbc65acbd7e33fb71d1d3ede (patch)
treefa0c99f00806dda3e9bf469245bb0b3870c4a101 /py/objarray.c
parent6d197740cf7067c65f40574f7cf0707480bbf461 (diff)
downloadmicropython-6ac5dced2441bf63dbc65acbd7e33fb71d1d3ede.tar.gz
micropython-6ac5dced2441bf63dbc65acbd7e33fb71d1d3ede.zip
py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL.
See issue #608 for justification.
Diffstat (limited to 'py/objarray.c')
-rw-r--r--py/objarray.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objarray.c b/py/objarray.c
index 81ab57139a..d973a4c563 100644
--- a/py/objarray.c
+++ b/py/objarray.c
@@ -140,7 +140,7 @@ STATIC mp_obj_t array_unary_op(int op, mp_obj_t o_in) {
switch (op) {
case MP_UNARY_OP_BOOL: return MP_BOOL(o->len != 0);
case MP_UNARY_OP_LEN: return MP_OBJ_NEW_SMALL_INT(o->len);
- default: return MP_OBJ_NOT_SUPPORTED;
+ default: return MP_OBJ_NULL; // op not supported
}
}
@@ -166,7 +166,7 @@ STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value
// TODO implement
// TODO: confirmed that both bytearray and array.array support
// slice deletion
- return MP_OBJ_NOT_SUPPORTED;
+ return MP_OBJ_NULL; // op not supported
} else {
mp_obj_array_t *o = self_in;
if (MP_OBJ_IS_TYPE(index_in, &mp_type_slice)) {
@@ -174,7 +174,7 @@ STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value
// Only getting a slice is suported so far, not assignment
// TODO: confirmed that both bytearray and array.array support
// slice assignment (incl. of different size)
- return MP_OBJ_NOT_SUPPORTED;
+ return MP_OBJ_NULL; // op not supported
}
machine_uint_t start, stop;
if (!mp_seq_get_fast_slice_indexes(o->len, index_in, &start, &stop)) {