summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorFurkan Onder <furkanonder@protonmail.com>2024-02-17 10:51:43 (GMT)
committerGitHub <noreply@github.com>2024-02-17 10:51:43 (GMT)
commitd5a30a1777f04523c7b151b894e999f5714d8e96 (patch)
tree43aa59785b3d1e3b7a5d02840e6d4a94479aa3ac /Doc/library
parentdebb1386be024181c8c003c5cbf61608024aee09 (diff)
downloadcpython-d5a30a1777f04523c7b151b894e999f5714d8e96.zip
cpython-d5a30a1777f04523c7b151b894e999f5714d8e96.tar.gz
cpython-d5a30a1777f04523c7b151b894e999f5714d8e96.tar.bz2
gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/pickle.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst
index acada09..cb51768 100644
--- a/Doc/library/pickle.rst
+++ b/Doc/library/pickle.rst
@@ -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