mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062)
This commit is contained in:
parent
debb1386be
commit
d5a30a1777
1 changed files with 2 additions and 2 deletions
|
|
@ -653,8 +653,8 @@ methods:
|
|||
|
||||
.. note::
|
||||
|
||||
If :meth:`__getstate__` returns a false value, the :meth:`__setstate__`
|
||||
method will not be called upon unpickling.
|
||||
If :meth:`__reduce__` returns a state with value ``None`` at pickling,
|
||||
the :meth:`__setstate__` method will not be called upon unpickling.
|
||||
|
||||
|
||||
Refer to the section :ref:`pickle-state` for more information about how to use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue