diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-08 12:55:18 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-08 12:55:18 +1000 |
commit | 190c7dba89dbb1165f682b56f278e3bc9715680c (patch) | |
tree | 344f8097ddde27d6a07c4fcf109dc772f9f332e7 | |
parent | 93150a0d40a6f29907d53bba8a4a44f1c5fb2449 (diff) |
stm32/mpconfigport.h: Enable DELATTR_SETATTR and BUILTINS_NOTIMPLEMENTED
MICROPY_PY_DELATTR_SETATTR can now be enabled without a performance hit for
classes that don't use this feature.
MICROPY_PY_BUILTINS_NOTIMPLEMENTED is a minor addition that improves
compatibility with CPython.
-rw-r--r-- | ports/stm32/mpconfigport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/stm32/mpconfigport.h b/ports/stm32/mpconfigport.h index 3093e9d8a..89a43f3bb 100644 --- a/ports/stm32/mpconfigport.h +++ b/ports/stm32/mpconfigport.h @@ -83,6 +83,7 @@ // control over Python builtins #define MICROPY_PY_FUNCTION_ATTRS (1) #define MICROPY_PY_DESCRIPTORS (1) +#define MICROPY_PY_DELATTR_SETATTR (1) #define MICROPY_PY_BUILTINS_STR_UNICODE (1) #define MICROPY_PY_BUILTINS_STR_CENTER (1) #define MICROPY_PY_BUILTINS_STR_PARTITION (1) @@ -94,6 +95,7 @@ #define MICROPY_PY_ALL_SPECIAL_METHODS (1) #define MICROPY_PY_BUILTINS_COMPILE (1) #define MICROPY_PY_BUILTINS_EXECFILE (1) +#define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (1) #define MICROPY_PY_BUILTINS_INPUT (1) #define MICROPY_PY_BUILTINS_POW3 (1) #define MICROPY_PY_BUILTINS_HELP (1) |