Skip to content

Commit 10600b6

Browse files
committed
Enable built-in "set" and "frozenset" types.
Adds 3368 bytes to code size.
1 parent 1b8edd0 commit 10600b6

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

inc/genhdr/qstrdefs.generated.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,19 @@ QDEF(MP_QSTR_generator, (const byte*)"\x96\x09" "generator")
217217
QDEF(MP_QSTR_iterator, (const byte*)"\x47\x08" "iterator")
218218
QDEF(MP_QSTR_module, (const byte*)"\xbf\x06" "module")
219219
QDEF(MP_QSTR_slice, (const byte*)"\xb5\x05" "slice")
220+
QDEF(MP_QSTR_discard, (const byte*)"\x0f\x07" "discard")
221+
QDEF(MP_QSTR_difference, (const byte*)"\x72\x0a" "difference")
222+
QDEF(MP_QSTR_difference_update, (const byte*)"\x9c\x11" "difference_update")
223+
QDEF(MP_QSTR_intersection, (const byte*)"\x28\x0c" "intersection")
224+
QDEF(MP_QSTR_intersection_update, (const byte*)"\x06\x13" "intersection_update")
225+
QDEF(MP_QSTR_isdisjoint, (const byte*)"\xf7\x0a" "isdisjoint")
226+
QDEF(MP_QSTR_issubset, (const byte*)"\xb9\x08" "issubset")
227+
QDEF(MP_QSTR_issuperset, (const byte*)"\xfc\x0a" "issuperset")
228+
QDEF(MP_QSTR_set, (const byte*)"\x27\x03" "set")
229+
QDEF(MP_QSTR_symmetric_difference, (const byte*)"\xce\x14" "symmetric_difference")
230+
QDEF(MP_QSTR_symmetric_difference_update, (const byte*)"\x60\x1b" "symmetric_difference_update")
231+
QDEF(MP_QSTR_union, (const byte*)"\xf6\x05" "union")
232+
QDEF(MP_QSTR_frozenset, (const byte*)"\xed\x09" "frozenset")
220233
QDEF(MP_QSTR_math, (const byte*)"\x35\x04" "math")
221234
QDEF(MP_QSTR_e, (const byte*)"\xc0\x01" "e")
222235
QDEF(MP_QSTR_pi, (const byte*)"\x1c\x02" "pi")

inc/microbit/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
#define MICROPY_PY_BUILTINS_BYTEARRAY (1)
3434
#define MICROPY_PY_BUILTINS_MEMORYVIEW (0)
3535
#define MICROPY_PY_BUILTINS_ENUMERATE (1)
36-
#define MICROPY_PY_BUILTINS_FROZENSET (0)
36+
#define MICROPY_PY_BUILTINS_FROZENSET (1)
3737
#define MICROPY_PY_BUILTINS_REVERSED (1)
38-
#define MICROPY_PY_BUILTINS_SET (0)
38+
#define MICROPY_PY_BUILTINS_SET (1)
3939
#define MICROPY_PY_BUILTINS_SLICE (1)
4040
#define MICROPY_PY_BUILTINS_PROPERTY (0)
4141
#define MICROPY_PY___FILE__ (0)

0 commit comments

Comments
 (0)