From 1fe72a7c1ea867559024662987ee6030132a46ca Mon Sep 17 00:00:00 2001 From: NewUserHa <32261870+NewUserHa@users.noreply.github.com> Date: Mon, 10 Mar 2025 07:35:59 +0800 Subject: [PATCH] Update copy.rst --- Doc/library/copy.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/copy.rst b/Doc/library/copy.rst index 95b41f988a035b..ae941fa0596929 100644 --- a/Doc/library/copy.rst +++ b/Doc/library/copy.rst @@ -72,8 +72,8 @@ file, socket, window, or any similar types. It does "copy" functions and classes (shallow and deeply), by returning the original object unchanged; this is compatible with the way these are treated by the :mod:`pickle` module. -Shallow copies of dictionaries can be made using :meth:`dict.copy`, and -of lists by assigning a slice of the entire list, for example, +Shallow copies of dictionaries and lists can be made using :meth:`dict.copy`. And +of lists can also be made by assigning a slice of the entire list, for example, ``copied_list = original_list[:]``. .. index:: pair: module; pickle