aboutsummaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorPaul Sokolovsky2018-08-06 01:25:41 +0300
committerDamien George2018-12-13 01:20:55 +1100
commitfbb8335084db35ce8dd8d6bd9a678966727ce30f (patch)
treebe1f896cff76416620b8ce5e1e017cdc08e50881 /py/mpconfig.h
parent169b152f297e6c678ea10b36af889085dd27c527 (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.h5
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)