From bdb0d2d0bc146cc043d9bd0c066446d56266413a Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 22 Oct 2016 14:30:01 +1100 Subject: [PATCH] py/modbuiltins: Add builtin "slice", pointing to existing slice type. --- py/modbuiltins.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py/modbuiltins.c b/py/modbuiltins.c index b295dae629..d52949b31d 100644 --- a/py/modbuiltins.c +++ b/py/modbuiltins.c @@ -617,6 +617,9 @@ STATIC const mp_rom_map_elem_t mp_module_builtins_globals_table[] = { #if MICROPY_PY_BUILTINS_SET { MP_ROM_QSTR(MP_QSTR_set), MP_ROM_PTR(&mp_type_set) }, #endif + #if MICROPY_PY_BUILTINS_SLICE + { MP_ROM_QSTR(MP_QSTR_slice), MP_ROM_PTR(&mp_type_slice) }, + #endif { MP_ROM_QSTR(MP_QSTR_str), MP_ROM_PTR(&mp_type_str) }, { MP_ROM_QSTR(MP_QSTR_super), MP_ROM_PTR(&mp_type_super) }, { MP_ROM_QSTR(MP_QSTR_tuple), MP_ROM_PTR(&mp_type_tuple) },