Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7a6f5 commit 69ee87eCopy full SHA for 69ee87e
2 files changed
Doc/library/copy.rst
@@ -31,6 +31,7 @@ Interface summary:
31
32
Raised for module specific errors.
33
34
+.. _shallow_vs_deep_copy:
35
36
The difference between shallow and deep copying is only relevant for compound
37
objects (objects that contain other objects, like lists or class instances):
Doc/tutorial/introduction.rst
@@ -394,7 +394,8 @@ indexed and sliced::
394
[9, 16, 25]
395
396
All slice operations return a new list containing the requested elements. This
397
-means that the following slice returns a new (shallow) copy of the list::
+means that the following slice returns a
398
+:ref:`shallow copy <shallow_vs_deep_copy>` of the list::
399
400
>>> squares[:]
401
[1, 4, 9, 16, 25]
0 commit comments