diff options
author | Damien George <damien.p.george@gmail.com> | 2020-03-01 00:06:15 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-03-26 01:21:04 +1100 |
commit | f8fc78691d4ee401184a62b7974ebdc8f16850ab (patch) | |
tree | 0d9425f7cc15fed8a804572209034f98fe643628 /py | |
parent | c5cc64175be32cb1e4f3f1a249667bc9f5a12613 (diff) |
py/mpconfig.h: Enable MICROPY_MODULE_GETATTR by default.
To enable lazy loading of submodules (among other things), which is very
useful for MicroPython libraries that want to have optional subcomponents.
Disabled explicitly on minimal ports.
Diffstat (limited to 'py')
-rw-r--r-- | py/mpconfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 371f2ce03..c5829a3e0 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -729,7 +729,7 @@ typedef double mp_float_t; // Whether to support module-level __getattr__ (see PEP 562) #ifndef MICROPY_MODULE_GETATTR -#define MICROPY_MODULE_GETATTR (0) +#define MICROPY_MODULE_GETATTR (1) #endif // Whether module weak links are supported |