Commit 7eea289c authored by Georg Brandl's avatar Georg Brandl

__setstate__ gets an argument.

parent c98f6b29
...@@ -444,7 +444,7 @@ Pickling and unpickling normal class instances ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment