diff options
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 292fafb52..afef744ab 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -845,7 +845,9 @@ typedef double mp_float_t; #define MICROPY_MODULE_ATTR_DELEGATION (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES) #endif -// Whether to call __init__ when importing builtin modules for the first time +// Whether to call __init__ when importing builtin modules for the first time. +// Modules using this need to handle the possibility that __init__ might be +// called multiple times. #ifndef MICROPY_MODULE_BUILTIN_INIT #define MICROPY_MODULE_BUILTIN_INIT (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES) #endif |
