Method summary
Methods
- __init__(self)
- set(self, obj, state, ignore = None, first = None, last = None)
Sets the state of the object.
This is to be used as a means to simplify loading the state of an object from its __setstate__ method using the dictionary describing its state. Note that before the state is set, the registered handlers for the particular class are called in order to upgrade the version of the state to the latest version.
Parameters
obj : object
The object whose state is to be set. If this is None (default) then the object is created.
state : dict
The dictionary representing the state of the object.
ignore : list(str)
The list of attributes specified in this list are ignored and the state of these attributes are not set (this excludes the ones specified in first and last). If one specifies a '*' then all attributes are ignored except the ones specified in first and last.
first : list(str)
The list of attributes specified in this list are set first (in order), before any other attributes are set.
last : list(str)
The list of attributes specified in this list are set last (in order), after all other attributes are set.