With the aim of getting consistency, and removing the need to learn an additional term, replace uses of uPy/uPython with MPy/MicroPython. Rule of thumb was to use "MPy" abbreviation where "CPy" is used nearby, but the full word MicroPython otherwise. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
13 lines
363 B
Python
13 lines
363 B
Python
try:
|
|
frozenset
|
|
except NameError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
# Examples from https://docs.python.org/3/library/stdtypes.html#set
|
|
# "Instances of set are compared to instances of frozenset based on their
|
|
# members. For example:"
|
|
print(set('abc') == frozenset('abc'))
|
|
# This doesn't work in MicroPython
|
|
#print(set('abc') in set([frozenset('abc')]))
|