mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
py: Add option to disable set() object (enabled by default).
This commit is contained in:
2
py/vm.c
2
py/vm.c
@@ -772,6 +772,7 @@ unwind_jump:
|
||||
sp -= 2;
|
||||
DISPATCH();
|
||||
|
||||
#if MICROPY_PY_BUILTINS_SET
|
||||
ENTRY(MP_BC_BUILD_SET):
|
||||
DECODE_UINT;
|
||||
sp -= unum - 1;
|
||||
@@ -784,6 +785,7 @@ unwind_jump:
|
||||
mp_obj_set_store(sp[-unum], sp[0]);
|
||||
sp--;
|
||||
DISPATCH();
|
||||
#endif
|
||||
|
||||
#if MICROPY_PY_BUILTINS_SLICE
|
||||
ENTRY(MP_BC_BUILD_SLICE):
|
||||
|
||||
Reference in New Issue
Block a user