__setstate__ gets an argument.

This commit is contained in:
Georg Brandl 2010-10-17 11:07:40 +00:00
parent 79cdff0b9b
commit c463c8a138

View file

@ -444,7 +444,7 @@ Pickling and unpickling normal class instances
instance's dictionary. If there is no :meth:`__getstate__` method, the instance's dictionary. If there is no :meth:`__getstate__` method, the
instance's :attr:`__dict__` is pickled. instance's :attr:`__dict__` is pickled.
.. method:: object.__setstate__() .. method:: object.__setstate__(state)
Upon unpickling, if the class also defines the method :meth:`__setstate__`, Upon unpickling, if the class also defines the method :meth:`__setstate__`,
it is called with the unpickled state. [#]_ If there is no it is called with the unpickled state. [#]_ If there is no