summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-06 18:11:20 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-07 22:51:08 +0000
commitd90b19eca56a361d432ab6af9c2305bb3f708e1c (patch)
tree88880f24309ceb7ddccae716847e81d7a0042822 /tests
parent7d21d516d2eb77242c8ade4ae83f0d438e86f072 (diff)
Added dict.copy
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/dict_copy.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/tests/dict_copy.py b/tests/basics/tests/dict_copy.py
new file mode 100644
index 000000000..c3eb7ffc1
--- /dev/null
+++ b/tests/basics/tests/dict_copy.py
@@ -0,0 +1,5 @@
+a = {i: 2*i for i in range(1000)}
+b = a.copy()
+for i in range(1000):
+ print(i, b[i])
+print(len(b))