summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-03-19 03:33:33 (GMT)
committerFred Drake <fdrake@acm.org>2002-03-19 03:33:33 (GMT)
commit2f31d561d5039dbe008c0a3d57f85d8a90423a63 (patch)
tree2234fb744cb96883da459d7a99c25f095ccbde56 /Doc
parent517a721b7f124194dcd2a62f7abf82e3a4bba022 (diff)
downloadcpython-2f31d561d5039dbe008c0a3d57f85d8a90423a63.zip
cpython-2f31d561d5039dbe008c0a3d57f85d8a90423a63.tar.gz
cpython-2f31d561d5039dbe008c0a3d57f85d8a90423a63.tar.bz2
Clarify that copy_reg.pickle() is not intended for use with "classic" classes.
This was stated before, but a minor grammatical error made it difficult to be sure of the meaning. This closes SF bug #530143.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcopyreg.tex8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/lib/libcopyreg.tex b/Doc/lib/libcopyreg.tex
index 25cc505..b2ea015 100644
--- a/Doc/lib/libcopyreg.tex
+++ b/Doc/lib/libcopyreg.tex
@@ -22,9 +22,11 @@ functions or class instances.
\begin{funcdesc}{pickle}{type, function\optional{, constructor}}
Declares that \var{function} should be used as a ``reduction''
- function for objects of type \var{type}; \var{type} should not a
- class object. \var{function} should return either a string or a
- tuple containing two or three elements.
+ function for objects of type \var{type}; \var{type} must not be a
+ ``classic'' class object. (Classic classes are handled differently;
+ see the documentation for the \refmodule{pickle} module for
+ details.) \var{function} should return either a string or a tuple
+ containing two or three elements.
The optional \var{constructor} parameter, if provided, is a
callable object which can be used to reconstruct the object when