From ec25b645686d432f143241e2a079765c7128f33d Mon Sep 17 00:00:00 2001 From: jsk Date: Wed, 25 Sep 2024 13:14:29 +0100 Subject: [PATCH] [python/en] deep/shallow copy wording confusion --- python.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python.html.markdown b/python.html.markdown index 4f1c1cdb..88c5eaca 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -226,7 +226,7 @@ li[::-1] # Return list in reverse order => [3, 4, 2, 1] # Use any combination of these to make advanced slices # li[start:end:step] -# Make a one layer deep copy using slices +# Make a shallow copy using slices li2 = li[:] # => li2 = [1, 2, 4, 3] but (li2 is li) will result in false. # Remove arbitrary elements from a list with "del"