circuitpython/tests/stress/dict_copy.py

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

8 lines
134 B
Python
Raw Normal View History

# copying a large dictionary
2021-03-15 09:57:36 -04:00
a = {i: 2 * i for i in range(1000)}
b = a.copy()
for i in range(1000):
print(i, b[i])
print(len(b))