Skip to content

Commit bdb0d2d

Browse files
committed
py/modbuiltins: Add builtin "slice", pointing to existing slice type.
1 parent 5694201 commit bdb0d2d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

py/modbuiltins.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ STATIC const mp_rom_map_elem_t mp_module_builtins_globals_table[] = {
617617
#if MICROPY_PY_BUILTINS_SET
618618
{ MP_ROM_QSTR(MP_QSTR_set), MP_ROM_PTR(&mp_type_set) },
619619
#endif
620+
#if MICROPY_PY_BUILTINS_SLICE
621+
{ MP_ROM_QSTR(MP_QSTR_slice), MP_ROM_PTR(&mp_type_slice) },
622+
#endif
620623
{ MP_ROM_QSTR(MP_QSTR_str), MP_ROM_PTR(&mp_type_str) },
621624
{ MP_ROM_QSTR(MP_QSTR_super), MP_ROM_PTR(&mp_type_super) },
622625
{ MP_ROM_QSTR(MP_QSTR_tuple), MP_ROM_PTR(&mp_type_tuple) },

0 commit comments

Comments
 (0)