From c463c8a138b28c406c2849e7a1e7d7a4c7b377be Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 17 Oct 2010 11:07:40 +0000 Subject: [PATCH] __setstate__ gets an argument. --- Doc/library/pickle.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst index a3e5ad4765..5466a7e04d 100644 --- a/Doc/library/pickle.rst +++ b/Doc/library/pickle.rst @@ -444,7 +444,7 @@ Pickling and unpickling normal class instances instance's dictionary. If there is no :meth:`__getstate__` method, the instance's :attr:`__dict__` is pickled. -.. method:: object.__setstate__() +.. method:: object.__setstate__(state) Upon unpickling, if the class also defines the method :meth:`__setstate__`, it is called with the unpickled state. [#]_ If there is no -- 2.40.0