diff options
author | Paul m. p. P <paul.peny@wanadoo.fr> | 2018-10-22 18:34:29 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-10-23 11:22:50 +1100 |
commit | 454cca6016afc96deb6d1ad5d1b3553ab9ad18dd (patch) | |
tree | 953cb4bdd6de7b25498d2e35e831c2b307a1b496 /ports/unix/mpconfigport_coverage.h | |
parent | a5273133829ed3e2a8c8e3c44e37e198e109f340 (diff) |
py/objmodule: Implement PEP 562's __getattr__ for modules.
Configurable via MICROPY_MODULE_GETATTR, disabled by default. Among other
things __getattr__ for modules can help to build lazy loading / code
unloading at runtime.
Diffstat (limited to 'ports/unix/mpconfigport_coverage.h')
-rw-r--r-- | ports/unix/mpconfigport_coverage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/unix/mpconfigport_coverage.h b/ports/unix/mpconfigport_coverage.h index 9e58f8aba..9ab442ff9 100644 --- a/ports/unix/mpconfigport_coverage.h +++ b/ports/unix/mpconfigport_coverage.h @@ -36,6 +36,7 @@ #define MICROPY_FLOAT_HIGH_QUALITY_HASH (1) #define MICROPY_ENABLE_SCHEDULER (1) #define MICROPY_READER_VFS (1) +#define MICROPY_MODULE_GETATTR (1) #define MICROPY_PY_DELATTR_SETATTR (1) #define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) #define MICROPY_PY_BUILTINS_RANGE_BINOP (1) |