mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
[3.12] gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062) (GH-115597)
(cherry picked from commit d5a30a1777
)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
This commit is contained in:
parent
de347c0207
commit
7218b81614
1 changed files with 2 additions and 2 deletions
|
@ -645,8 +645,8 @@ methods:
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
If :meth:`__getstate__` returns a false value, the :meth:`__setstate__`
|
If :meth:`__reduce__` returns a state with value ``None`` at pickling,
|
||||||
method will not be called upon unpickling.
|
the :meth:`__setstate__` method will not be called upon unpickling.
|
||||||
|
|
||||||
|
|
||||||
Refer to the section :ref:`pickle-state` for more information about how to use
|
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