ZODB.Persistent Objects.Persistent.__setstate__

Documentation
Set the persistent state of the object. The default implementation expects the state to be a dictionary containing attribute values. It is sometimes useful to override __setstate__ but not __getstate__. For example, a custom __setstate__ may call the default __setstate__ and then set volatile attributes.

In general, it's best to avoid implementing __getstate__ and __setstate__.
Parameters
TypeNameDefaultDocumentation
PyObjectstate