diff options
| author | Paul Sokolovsky | 2018-08-06 01:25:41 +0300 |
|---|---|---|
| committer | Damien George | 2018-12-13 01:20:55 +1100 |
| commit | fbb8335084db35ce8dd8d6bd9a678966727ce30f (patch) | |
| tree | be1f896cff76416620b8ce5e1e017cdc08e50881 /py/mpconfig.h | |
| parent | 169b152f297e6c678ea10b36af889085dd27c527 (diff) | |
py/objdict: Make .fromkeys() method configurable.
On by default, turned off for minimal/bare-arm. Saves 144 bytes on x86.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index f613f664a..6edeb7a1c 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -804,6 +804,11 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_BYTEARRAY (1) #endif +// Whether to support dict.fromkeys() class method +#ifndef MICROPY_PY_BUILTINS_DICT_FROMKEYS +#define MICROPY_PY_BUILTINS_DICT_FROMKEYS (1) +#endif + // Whether to support memoryview object #ifndef MICROPY_PY_BUILTINS_MEMORYVIEW #define MICROPY_PY_BUILTINS_MEMORYVIEW (0) |
