diff options
| author | Peter D. Gray <peter@conalgo.com> | 2015-03-06 14:48:14 -0500 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-03-11 20:02:06 +0000 |
| commit | b2a237d337b82085c5cd54da76d67f9fe5bf1489 (patch) | |
| tree | 02d686a9a17407278498c83859c6444563eae149 /py/mpconfig.h | |
| parent | 5be4a84a58c54eed756a93ed4cba9ed24bdd7ef2 (diff) | |
py: Add support for start/stop/step attributes of builtin range object.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 26d228785..bfa412167 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -382,6 +382,12 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_PROPERTY (1) #endif +// Whether to implement the start/stop/step attributes (readback) on +// the "range" builtin type. Rarely used, and costs ~60 bytes (x86). +#ifndef MICROPY_PY_BUILTINS_RANGE_ATTRS +#define MICROPY_PY_BUILTINS_RANGE_ATTRS (1) +#endif + // Whether to support complete set of special methods // for user classes, otherwise only the most used #ifndef MICROPY_PY_ALL_SPECIAL_METHODS |
