diff options
author | Fred Drake <fdrake@acm.org> | 2000-10-10 18:36:02 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-10-10 18:36:02 (GMT) |
commit | 3ece71327feda1f9c5fd76720895aa4c5577e4ed (patch) | |
tree | 40dcfd20e9bbb68d358442363f758ada0a49210a | |
parent | f8ca7d88c6c6ab1497cb7a6d383b16085a836670 (diff) | |
download | cpython-3ece71327feda1f9c5fd76720895aa4c5577e4ed.zip cpython-3ece71327feda1f9c5fd76720895aa4c5577e4ed.tar.gz cpython-3ece71327feda1f9c5fd76720895aa4c5577e4ed.tar.bz2 |
Make it clear that copy_reg.pickle() should not be used for classes, but
only for extension types.
This partially fixes SourceForge bug #116295.
-rw-r--r-- | Doc/lib/libcopyreg.tex | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/lib/libcopyreg.tex b/Doc/lib/libcopyreg.tex index 2d5c47ec..2032172 100644 --- a/Doc/lib/libcopyreg.tex +++ b/Doc/lib/libcopyreg.tex @@ -20,9 +20,10 @@ 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 or class \var{type}. \var{function} - should return either a string or a tuple. The optional - \var{constructor} parameter, if provided, is a callable object which - can be used to reconstruct the object when called with the tuple of - arguments returned by \var{function} at pickling time. + function for objects of type \var{type}; \var{type} should not a + class object. \var{function} should return either a string or a + tuple. The optional \var{constructor} parameter, if provided, is a + callable object which can be used to reconstruct the object when + called with the tuple of arguments returned by \var{function} at + pickling time. \end{funcdesc} |