mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 05:00:26 +01:00
Merge pull request #60 from chipaca/list_copy
Implemented list.copy. Fixes issue #54.
This commit is contained in:
7
tests/basics/tests/list_copy.py
Normal file
7
tests/basics/tests/list_copy.py
Normal 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)
|
||||
Reference in New Issue
Block a user