]> granicus.if.org Git - python/commitdiff
__setstate__ gets an argument.
authorGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 11:07:40 +0000 (11:07 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 11:07:40 +0000 (11:07 +0000)
Doc/library/pickle.rst

index a3e5ad4765400ec6ab640a0ce23f3a20cc358cbc..5466a7e04d346f8f7707c9a31f9d48a583c70ca2 100644 (file)
@@ -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