Implemented list.copy. Fixes issue #54.

This commit is contained in:
John R. Lenton
2014-01-03 23:42:17 +00:00
parent 069ded9514
commit 26c211648b
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# list copy tests
a = [1, 2, []]
b = a.copy()
a[-1].append(1)
a.append(4)
print(a)
print(b)