mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Eliminate the deprecated option to return None instead of a tuple of arguments in __reduce__().
This commit is contained in:
parent
84667c063a
commit
a6b45cc31d
4 changed files with 16 additions and 33 deletions
|
@ -515,12 +515,8 @@ Otherwise, an \exception{UnpicklingError} will be raised in the
|
|||
unpickling environment. Note that as usual, the callable itself is
|
||||
pickled by name.
|
||||
|
||||
\item A tuple of arguments for the callable object, or \code{None}.
|
||||
\deprecated{2.3}{If this item is \code{None}, then instead of calling
|
||||
the callable directly, its \method{__basicnew__()} method is called
|
||||
without arguments; this method should also return the unpickled
|
||||
object. Providing \code{None} is deprecated, however; return a
|
||||
tuple of arguments instead.}
|
||||
\item A tuple of arguments for the callable object.
|
||||
\versionchanged[Formerly, this argument could also be \code{None}]{2.5}
|
||||
|
||||
\item Optionally, the object's state, which will be passed to
|
||||
the object's \method{__setstate__()} method as described in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue