mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
mass changes; fix titles; add examples; correct typos; clarifications;
unified style; etc.
This commit is contained in:
parent
7760cdea81
commit
470be14c8a
131 changed files with 1960 additions and 1114 deletions
|
@ -1,5 +1,6 @@
|
|||
\section{Built-in module \sectcode{copy}}
|
||||
\section{Standard Module \sectcode{copy}}
|
||||
\stmodindex{copy}
|
||||
\renewcommand{\indexsubitem}{(copy function)}
|
||||
\ttindex{copy}
|
||||
\ttindex{deepcopy}
|
||||
|
||||
|
@ -14,7 +15,7 @@ x = copy.copy(y) # make a shallow copy of y
|
|||
x = copy.deepcopy(y) # make a deep copy of y
|
||||
\end{verbatim}
|
||||
|
||||
For module specific errors, \code{copy.Error} is raised.
|
||||
For module specific errors, \code{copy.error} is raised.
|
||||
|
||||
The difference between shallow and deep copying is only relevant for
|
||||
compound objects (objects that contain other objects, like lists or
|
||||
|
@ -74,6 +75,7 @@ to control pickling: they can define methods called
|
|||
\code{__setstate__()}. See the description of module \code{pickle}
|
||||
for information on these methods.
|
||||
\stmodindex{pickle}
|
||||
\renewcommand{\indexsubitem}{(copy protocol)}
|
||||
\ttindex{__getinitargs__}
|
||||
\ttindex{__getstate__}
|
||||
\ttindex{__setstate__}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue