PyDocs

Nav

Python Runtime Services

object.__setstate__

builtins

method of object
  • object.__setstate__(state)
Upon unpickling, if the class defines __setstate__(), it is called with the unpickled state. In that case, there is no requirement for the state object to be a dictionary. Otherwise, the pickled state must be a dictionary and its items are assigned to the new instance’s dictionary.
0 Examples
No examples for builtins/object.__setstate__.
See Also
No see-alsos for builtins/object.__setstate__
0 Notes
No notes for object.__setstate__