micropython/tests/basics/dict_fromkeys2.py

11 wiersze
193 B
Python

try:
reversed
except:
print("SKIP")
raise SystemExit
# argument to fromkeys has no __len__
d = dict.fromkeys(reversed(range(1)))
#d = dict.fromkeys((x for x in range(1)))
print(d)