summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-05-05 22:18:07 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-05-05 22:18:07 +0300
commit76677270218fb5732296e4fe1a0acbe05c8f818c (patch)
tree8a3488604b72791f142d034f317acdcfebd3c141 /py/obj.c
parente04aa96b4d5111737aba598f678e27793fe0cd01 (diff)
downloadmicropython-76677270218fb5732296e4fe1a0acbe05c8f818c.tar.gz
micropython-76677270218fb5732296e4fe1a0acbe05c8f818c.zip
objsingleton: New home for Ellipsis and NotImplemented.
Having NotImplemented as MP_OBJ_SENTINEL turned out to be problematic (it needs to be checked for in a lot of places, otherwise it'll crash as would pass MP_OBJ_IS_OBJ()), so made a proper singleton value like Ellipsis, both of them sharing the same type.
Diffstat (limited to 'py/obj.c')
-rw-r--r--py/obj.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/py/obj.c b/py/obj.c
index 1928fad98f..81adbe3933 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -62,14 +62,6 @@ void mp_obj_print_helper(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t
return;
}
#endif
-
- #if MICROPY_PY_BUILTINS_NOTIMPLEMENTED
- if (o_in == MP_OBJ_SENTINEL) {
- mp_printf(print, "%q", MP_QSTR_NotImplemented);
- return;
- }
- #endif
-
mp_obj_type_t *type = mp_obj_get_type(o_in);
if (type->print != NULL) {
type->print((mp_print_t*)print, o_in, kind);