-
- Downloads
py: Allow to properly disable builtin "set" object.
This patch makes MICROPY_PY_BUILTINS_SET compile-time option fully disable the builtin set object (when set to 0). This includes removing set constructor/comprehension from the grammar, the compiler and the emitters. Now, enabling set costs 8168 bytes on unix x64, and 3576 bytes on stmhal.
Showing
- py/compile.c 12 additions, 2 deletionspy/compile.c
- py/emit.h 2 additions, 0 deletionspy/emit.h
- py/emitbc.c 4 additions, 0 deletionspy/emitbc.c
- py/emitnative.c 4 additions, 0 deletionspy/emitnative.c
- py/emitpass1.c 2 additions, 0 deletionspy/emitpass1.c
- py/grammar.h 4 additions, 0 deletionspy/grammar.h
- py/map.c 4 additions, 0 deletionspy/map.c
- py/modbuiltins.c 1 addition, 1 deletionpy/modbuiltins.c
- py/vmentrytable.h 2 additions, 0 deletionspy/vmentrytable.h
- unix/qstrdefsport.h 2 additions, 0 deletionsunix/qstrdefsport.h
Loading
Please register or sign in to comment