Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d2b6a0

Browse files
committed
Markup nits.
1 parent 99cd573 commit 2d2b6a0

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

Doc/lib/libcopy.tex

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
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

118
This module provides generic (shallow and deep) copying operations.
9+
\withsubitem{(in copy)}{\ttindex{copy()}\ttindex{deepcopy()}}
1210

1311
Interface summary:
1412

@@ -77,13 +75,11 @@ \section{\module{copy} ---
7775
to 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
8179
methods. The \module{copy} module does not use the \module{copy_reg}
8280
registration 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

8884
In order for a class to define its own copy implementation, it can
8985
define special methods \method{__copy__()} and
@@ -94,9 +90,7 @@ \section{\module{copy} ---
9490
implementation needs to make a deep copy of a component, it should
9591
call the \function{deepcopy()} function with the component as first
9692
argument 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

Comments
 (0)