https://github.com/python/cpython/commit/8fccca2f50b2600cb24d7273f9a77ad255ef6a7f commit: 8fccca2f50b2600cb24d7273f9a77ad255ef6a7f branch: 3.11 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2024-02-17T14:56:54+02:00 summary:
[3.11] gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062) (GH-115598) (cherry picked from commit d5a30a1777f04523c7b151b894e999f5714d8e96) Co-authored-by: Furkan Onder <[email protected]> files: M Doc/library/pickle.rst diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst index c622469d5d0532..b8c9787adc42ec 100644 --- a/Doc/library/pickle.rst +++ b/Doc/library/pickle.rst @@ -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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
