From: Furkan Onder Date: Sat, 17 Feb 2024 10:51:43 +0000 (+0300) Subject: gh-56499: Update the pickle library's note section for the __setstate__ function... X-Git-Tag: v3.13.0a5~364 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5a30a1777f04523c7b151b894e999f5714d8e96;p=thirdparty%2FPython%2Fcpython.git gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062) --- diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst index acada092afb6..cb517681fa81 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