Skip to content

Commit 1fe72a7

Browse files
authored
Update copy.rst
1 parent 98fa4a4 commit 1fe72a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/copy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ file, socket, window, or any similar types. It does "copy" functions and
7272
classes (shallow and deeply), by returning the original object unchanged; this
7373
is compatible with the way these are treated by the :mod:`pickle` module.
7474

75-
Shallow copies of dictionaries can be made using :meth:`dict.copy`, and
76-
of lists by assigning a slice of the entire list, for example,
75+
Shallow copies of dictionaries and lists can be made using :meth:`dict.copy`. And
76+
of lists can also be made by assigning a slice of the entire list, for example,
7777
``copied_list = original_list[:]``.
7878

7979
.. index:: pair: module; pickle

0 commit comments

Comments
 (0)