mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Usage nit: a bunch of "nor"s should have been a single "or".
Make reference to the copy_reg module a hyperlink.
This commit is contained in:
parent
8ad2703bfb
commit
f5213c2a3d
1 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{copy} ---
|
\section{\module{copy} ---
|
||||||
Shallow and deep copy operations}
|
Shallow and deep copy operations}
|
||||||
\declaremodule{standard}{copy}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{copy}
|
||||||
\modulesynopsis{Shallow and deep copy operations.}
|
\modulesynopsis{Shallow and deep copy operations.}
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,16 +68,16 @@ set of components copied.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
This version does not copy types like module, class, function, method,
|
This version does not copy types like module, class, function, method,
|
||||||
nor stack trace, stack frame, nor file, socket, window, nor array, nor
|
stack trace, stack frame, file, socket, window, array, or any similar
|
||||||
any similar types.
|
types.
|
||||||
|
|
||||||
Classes can use the same interfaces to control copying that they use
|
Classes can use the same interfaces to control copying that they use
|
||||||
to control pickling: they can define methods called
|
to control pickling: they can define methods called
|
||||||
\method{__getinitargs__()}, \method{__getstate__()} and
|
\method{__getinitargs__()}, \method{__getstate__()} and
|
||||||
\method{__setstate__()}. See the description of module
|
\method{__setstate__()}. See the description of module
|
||||||
\refmodule{pickle}\refstmodindex{pickle} for information on these
|
\refmodule{pickle}\refstmodindex{pickle} for information on these
|
||||||
methods. The \module{copy} module does not use the \module{copy_reg}
|
methods. The \module{copy} module does not use the
|
||||||
registration module.
|
\refmodule[copyreg]{copy_reg} registration module.
|
||||||
\withsubitem{(copy protocol)}{\ttindex{__getinitargs__()}
|
\withsubitem{(copy protocol)}{\ttindex{__getinitargs__()}
|
||||||
\ttindex{__getstate__()}\ttindex{__setstate__()}}
|
\ttindex{__getstate__()}\ttindex{__setstate__()}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue