From: Fred Drake Date: Tue, 19 Mar 2002 03:33:14 +0000 (+0000) Subject: Clarify that copy_reg.pickle() is not intended for use with "classic" classes. X-Git-Tag: v2.2.1c2~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d1b47673111e6c84f5290c7363ffdab38ea1e7d;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/lib/libcopyreg.tex b/Doc/lib/libcopyreg.tex index 25cc505b194b..b2ea01549bf2 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