]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport 1.36 documenting Py2.3's impending deprecation of the non-tuple
authorRaymond Hettinger <python@rcn.com>
Sun, 6 Oct 2002 02:24:00 +0000 (02:24 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 6 Oct 2002 02:24:00 +0000 (02:24 +0000)
form.

Doc/lib/libpickle.tex

index fc132651a97eb5943a6569ba970664b24a925198..912d27b20fd1e1316f5616d79bb22fe5e58b5d32 100644 (file)
@@ -438,6 +438,7 @@ or three, with the following semantics:
       by name.
 
 \item A tuple of arguments for the callable object, or \code{None}.
+\deprecated{2.3}{Use the tuple of arguments instead}                                                           
 
 \item Optionally, the object's state, which will be passed to
       the object's \method{__setstate__()} method as described in
@@ -450,10 +451,13 @@ or three, with the following semantics:
 
 Upon unpickling, the callable will be called (provided that it meets
 the above criteria), passing in the tuple of arguments; it should
-return the unpickled object.  If the second item was \code{None}, then
-instead of calling the callable directly, its \method{__basicnew__()}
-method is called without arguments.  It should also return the
-unpickled object.
+return the unpickled object.
+
+If the second item was \code{None}, then instead of calling the
+callable directly, its \method{__basicnew__()} method is called
+without arguments.  It should also return the unpickled object.
+
+\deprecated{2.3}{Use the tuple of arguments instead}
 
 An alternative to implementing a \method{__reduce__()} method on the
 object to be pickled, is to register the callable with the