diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-05-05 22:18:07 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-05-05 22:18:07 +0300 |
commit | 76677270218fb5732296e4fe1a0acbe05c8f818c (patch) | |
tree | 8a3488604b72791f142d034f317acdcfebd3c141 /py/modbuiltins.c | |
parent | e04aa96b4d5111737aba598f678e27793fe0cd01 (diff) |
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/modbuiltins.c')
-rw-r--r-- | py/modbuiltins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modbuiltins.c b/py/modbuiltins.c index 9b5bd4c5e..1e91d4321 100644 --- a/py/modbuiltins.c +++ b/py/modbuiltins.c @@ -635,7 +635,7 @@ STATIC const mp_map_elem_t mp_module_builtins_globals_table[] = { // built-in objects { MP_OBJ_NEW_QSTR(MP_QSTR_Ellipsis), (mp_obj_t)&mp_const_ellipsis_obj }, #if MICROPY_PY_BUILTINS_NOTIMPLEMENTED - { MP_OBJ_NEW_QSTR(MP_QSTR_NotImplemented), MP_OBJ_SENTINEL }, + { MP_OBJ_NEW_QSTR(MP_QSTR_NotImplemented), (mp_obj_t)&mp_const_notimplemented_obj }, #endif // built-in user functions |