mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
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