diff options
author | Guido van Rossum <guido@python.org> | 1995-03-17 16:07:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-17 16:07:09 (GMT) |
commit | 470be14c8aa23a35a1f4d1f1260a66a85d3f3cd9 (patch) | |
tree | 4fd0b8eda81e63366598e55362ceac85adafccb4 /Doc/lib/libcopy.tex | |
parent | 7760cdea81166b7741561043c58dae171811fb2f (diff) | |
download | cpython-470be14c8aa23a35a1f4d1f1260a66a85d3f3cd9.zip cpython-470be14c8aa23a35a1f4d1f1260a66a85d3f3cd9.tar.gz cpython-470be14c8aa23a35a1f4d1f1260a66a85d3f3cd9.tar.bz2 |
mass changes; fix titles; add examples; correct typos; clarifications;
unified style; etc.
Diffstat (limited to 'Doc/lib/libcopy.tex')
-rw-r--r-- | Doc/lib/libcopy.tex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libcopy.tex b/Doc/lib/libcopy.tex index c141e05..4c0ce72 100644 --- a/Doc/lib/libcopy.tex +++ b/Doc/lib/libcopy.tex @@ -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__} |