]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-56499: Update the pickle library's note section for the __setstate__ function...
authorFurkan Onder <furkanonder@protonmail.com>
Sat, 17 Feb 2024 10:51:43 +0000 (13:51 +0300)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 10:51:43 +0000 (10:51 +0000)
Doc/library/pickle.rst

index acada092afb679bb96c767d8ce7584959c2afd96..cb517681fa81b96878949b50982ca7337a3dbc50 100644 (file)
@@ -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