circuitpython/tests/basics/dict_fromkeys2.py
2024-07-25 15:16:24 -04:00

8 lines
184 B
Python

# CIRCUITPY-CHANGE
import skip_if
skip_if.no_reversed()
# argument to fromkeys has no __len__
d = dict.fromkeys(reversed(range(1)))
#d = dict.fromkeys((x for x in range(1)))
print(d)