summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libcopy.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-05-05 04:24:30 (GMT)
committerFred Drake <fdrake@acm.org>2004-05-05 04:24:30 (GMT)
commit04d92c37f20fbf1ef4d7a862715ba3eb57e684b8 (patch)
tree260fe6f1c6c1789902f586f5066edf3682ba4ab4 /Doc/lib/libcopy.tex
parentcee8879a7d949f5ab080be373cd15cf476e5f058 (diff)
downloadcpython-04d92c37f20fbf1ef4d7a862715ba3eb57e684b8.zip
cpython-04d92c37f20fbf1ef4d7a862715ba3eb57e684b8.tar.gz
cpython-04d92c37f20fbf1ef4d7a862715ba3eb57e684b8.tar.bz2
Remove list of pickle protocol names used by the copy module; there
are enough subtleties to pickling that we don't want misunderstanding to spread because we don't provide all the information twice. The reference to the pickle module for information will have to suffice; at least only one portion of the docs will be out of date. ;-(
Diffstat (limited to 'Doc/lib/libcopy.tex')
-rw-r--r--Doc/lib/libcopy.tex6
1 files changed, 1 insertions, 5 deletions
diff --git a/Doc/lib/libcopy.tex b/Doc/lib/libcopy.tex
index f931c02..d73d6fd 100644
--- a/Doc/lib/libcopy.tex
+++ b/Doc/lib/libcopy.tex
@@ -72,14 +72,10 @@ stack trace, stack frame, file, socket, window, array, or any similar
types.
Classes can use the same interfaces to control copying that they use
-to control pickling: they can define methods called
-\method{__getinitargs__()}, \method{__getstate__()} and
-\method{__setstate__()}. See the description of module
+to control pickling. See the description of module
\refmodule{pickle}\refstmodindex{pickle} for information on these
methods. The \module{copy} module does not use the
\refmodule[copyreg]{copy_reg} registration module.
-\withsubitem{(copy protocol)}{\ttindex{__getinitargs__()}
- \ttindex{__getstate__()}\ttindex{__setstate__()}}
In order for a class to define its own copy implementation, it can
define special methods \method{__copy__()} and