From 22498f521cb973fd642baefaa5a4256d5e37e845 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Fri, 9 Jun 2023 15:29:17 +0800 Subject: [PATCH] update docs of copy --- Doc/library/copy.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/copy.rst b/Doc/library/copy.rst index 8f32477ed508c3..bf6e89f36e65c6 100644 --- a/Doc/library/copy.rst +++ b/Doc/library/copy.rst @@ -59,9 +59,9 @@ The :func:`deepcopy` function avoids these problems by: * letting user-defined classes override the copying operation or the set of components copied. -This module does not copy types like module, method, stack trace, stack frame, -file, socket, window, or any similar types. It does "copy" functions and -classes (shallow and deeply), by returning the original object unchanged; this +This module does not copy types like immutable object, module, method, stack trace, +stack frame, 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