micropython/tests/basics/dict_fromkeys2.py

12 lines
202 B
Python

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