]> granicus.if.org Git - python/commitdiff
Make it clear that copy_reg.pickle() should not be used for classes, but
authorFred Drake <fdrake@acm.org>
Tue, 10 Oct 2000 18:36:02 +0000 (18:36 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 10 Oct 2000 18:36:02 +0000 (18:36 +0000)
only for extension types.

This partially fixes SourceForge bug #116295.

Doc/lib/libcopyreg.tex

index 2d5c47ec481ff8f1d714d6a14111a5242f5fde64..203217233b2cdcec5536163b921340ac888c87bf 100644 (file)
@@ -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}