You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
364 B
13 lines
364 B
try:
|
|
frozenset
|
|
except NameError:
|
|
print("SKIP")
|
|
import sys
|
|
sys.exit()
|
|
|
|
# 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 uPy
|
|
#print(set('abc') in set([frozenset('abc')]))
|
|
|