Skip to content

Commit 8fccca2

Browse files
[3.11] gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062) (GH-115598)
(cherry picked from commit d5a30a1) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
1 parent a5eaa14 commit 8fccca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/pickle.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,8 @@ methods:
645645

646646
.. note::
647647

648-
If :meth:`__getstate__` returns a false value, the :meth:`__setstate__`
649-
method will not be called upon unpickling.
648+
If :meth:`__reduce__` returns a state with value ``None`` at pickling,
649+
the :meth:`__setstate__` method will not be called upon unpickling.
650650

651651

652652
Refer to the section :ref:`pickle-state` for more information about how to use

0 commit comments

Comments
 (0)