Skip to content

Commit 0a3bf13

Browse files
committed
Enable new deque functionality in MicroPython configuration settings
1 parent 49099ce commit 0a3bf13

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

py/mpconfig.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,16 @@ typedef double mp_float_t;
13241324
#define MICROPY_PY_COLLECTIONS_DEQUE (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
13251325
#endif
13261326

1327+
// Whether "collections.deque" supports iteration
1328+
#ifndef MICROPY_PY_COLLECTIONS_DEQUE_ITER
1329+
#define MICROPY_PY_COLLECTIONS_DEQUE_ITER (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
1330+
#endif
1331+
1332+
// Whether "collections.deque" supports subscription
1333+
#ifndef MICROPY_PY_COLLECTIONS_DEQUE_SUBSCR
1334+
#define MICROPY_PY_COLLECTIONS_DEQUE_SUBSCR (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
1335+
#endif
1336+
13271337
// Whether to provide "collections.OrderedDict" type
13281338
#ifndef MICROPY_PY_COLLECTIONS_ORDEREDDICT
13291339
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)

0 commit comments

Comments
 (0)