8000 gh-56499: Update the pickle library's note section for the __setstate… · python/cpython@d5a30a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5a30a1

Browse files
authored
gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062)
1 parent debb138 commit d5a30a1

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
@@ -653,8 +653,8 @@ methods:
653653

654654
.. note::
655655

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

659659

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

0 commit comments

Comments
 (0)
0