'Set slot or non-slot field attribute.'

def __setattr__(self, name, value):

    try:
        object.__setattr__(self, name, value)
    except AttributeError:
        if self._attrs:
            self._attrs[name] = value
        else:
            self._attrs = {name: value}
