]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-56499: Update the pickle library's note section for the __setstate__ functi...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Feb 2024 12:56:54 +0000 (13:56 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 12:56:54 +0000 (14:56 +0200)
(cherry picked from commit d5a30a1777f04523c7b151b894e999f5714d8e96)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Doc/library/pickle.rst

index c622469d5d0532e1ef1106164c1041e3e9887288..b8c9787adc42ec587cade612efc8b2f96d8d0e0b 100644 (file)
@@ -645,8 +645,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