11\section {\module {copy} ---
2- Shallow and deep copy operations. }
2+ Shallow and deep copy operations }
33\declaremodule {standard}{copy}
44
55\modulesynopsis {Shallow and deep copy operations.}
66
7- \withsubitem {(in module copy)}{%
8- \ttindex {copy}%
9- \ttindex {deepcopy}}
107
118This module provides generic (shallow and deep) copying operations.
9+ \withsubitem {(in copy)}{\ttindex {copy()}\ttindex {deepcopy()}}
1210
1311Interface summary:
1412
@@ -77,13 +75,11 @@ \section{\module{copy} ---
7775to control pickling: they can define methods called
7876\method {__getinitargs__()}, \method {__getstate__()} and
7977\method {__setstate__()}. See the description of module
80- \module {pickle}\refstmodindex {pickle} for information on these
78+ \refmodule {pickle}\refstmodindex {pickle} for information on these
8179methods. The \module {copy} module does not use the \module {copy_reg}
8280registration module.
83- \withsubitem {(copy protocol)}{%
84- \ttindex {__getinitargs__()}%
85- \ttindex {__getstate__()}%
86- \ttindex {__setstate__()}}
81+ \withsubitem {(copy protocol)}{\ttindex {__getinitargs__()}
82+ \ttindex {__getstate__()}\ttindex {__setstate__()}}
8783
8884In order for a class to define its own copy implementation, it can
8985define special methods \method {__copy__()} and
@@ -94,9 +90,7 @@ \section{\module{copy} ---
9490implementation needs to make a deep copy of a component, it should
9591call the \function {deepcopy()} function with the component as first
9692argument and the memo dictionary as second argument.
97- \withsubitem {(copy protocol)}{%
98- \ttindex {__copy__()}%
99- \ttindex {__deepcopy__()}}
93+ \withsubitem {(copy protocol)}{\ttindex {__copy__()}\ttindex {__deepcopy__()}}
10094
10195\begin {seealso }
10296\seemodule {pickle}{Discussion of the special disciplines used to
0 commit comments