From: Georg Brandl Date: Sun, 17 Oct 2010 11:07:40 +0000 (+0000) Subject: __setstate__ gets an argument. X-Git-Tag: v2.7.1rc1~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c463c8a138b28c406c2849e7a1e7d7a4c7b377be;p=python __setstate__ gets an argument. --- 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