[Python-checkins] CVS: python/dist/src/Doc/lib libcopyreg.tex,1.7,1.8

Fred L. Drake python-dev@python.org
Tue, 10 Oct 2000 11:36:06 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19896

Modified Files:
	libcopyreg.tex 
Log Message:

Make it clear that copy_reg.pickle() should not be used for classes, but
only for extension types.

This partially fixes SourceForge bug #116295.


Index: libcopyreg.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcopyreg.tex,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** libcopyreg.tex	1999/04/22 21:23:21	1.7
--- libcopyreg.tex	2000/10/10 18:36:02	1.8
***************
*** 21,28 ****
  \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.
  \end{funcdesc}
--- 21,29 ----
  \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.  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}