circuitpython/tests/basics/dict_fromkeys_reversed.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
170 B
Python
Raw Normal View History

# Skip this test if reversed() isn't built in.
import skip_if
skip_if.no_reversed()
# argument to fromkeys has no __len__
d = dict.fromkeys(reversed(range(1)))
print(d)