summaryrefslogtreecommitdiff
path: root/tests/stress/dict_copy.py
blob: 73d3a5b51d6011c8db5d04a0b46f8b0fa1b840b3 (plain)
1
2
3
4
5
6
7
# copying a large dictionary

a = {i: 2 * i for i in range(1000)}
b = a.copy()
for i in range(1000):
    print(i, b[i])
print(len(b))