diff options
author | Damien George <damien@micropython.org> | 2025-03-11 13:14:46 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-03-27 11:51:58 +1100 |
commit | 56e90cb60b028f0a306e6253ad183e6cd4a2b45e (patch) | |
tree | 985060ac4422a0e612c71690c23bd0526f390417 /py | |
parent | 4dfee50a0be8d61c79928f7bb11a4b77c485aea1 (diff) | |
download | micropython-56e90cb60b028f0a306e6253ad183e6cd4a2b45e.tar.gz micropython-56e90cb60b028f0a306e6253ad183e6cd4a2b45e.zip |
py/mpconfig: Enable 2-argument built-in next() at basic feature level.
This is a pretty fundamental built-in and having CPython-compatible
behaviour is beneficial. The code size increase is not much, and
ports/boards can still disable it if needed to save space.
Addresses issue #5384.
Signed-off-by: Damien George <damien@micropython.org>
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 05f39b3605..dfa32ebf76 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1215,7 +1215,7 @@ typedef double mp_float_t; // Support for calling next() with second argument #ifndef MICROPY_PY_BUILTINS_NEXT2 -#define MICROPY_PY_BUILTINS_NEXT2 (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING) +#define MICROPY_PY_BUILTINS_NEXT2 (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_BASIC_FEATURES) #endif // Whether to support rounding of integers (incl bignum); eg round(123,-1)=120 |