mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
__setstate__ gets an argument.
This commit is contained in:
parent
79cdff0b9b
commit
c463c8a138
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue