def __setattr__(self, name, value):
        """Custom __setattr__ for quick setting of children values
        
        If value is not an instance of ``Field``, assume it is the
        value for the field and that the field itself should not
        be overridden"""
        children_map = super(Struct, self).__getattribute__("_pfp__children_map")
        if name in children_map:
            if not isinstance(value, Field):
                children_map[name]._pfp__set_value(value)
            else:
                children_map[name] = value
                self._pfp__notify_parent()
            return children_map[name]
        else:
            # default getattr instead
            return super(Struct, self).__setattr__(name, value)
def __setattr__ ( self , name , value ) : children_map = super ( Struct , self ) . __getattribute__ ( "_pfp__children_map" ) if name in children_map : if not isinstance ( value , Field ) : children_map [ name ] . _pfp__set_value ( value ) else : children_map [ name ] = value self . _pfp__notify_parent ( ) return children_map [ name ] else : return super ( Struct , self ) . __setattr__ ( name , value )
Custom __setattr__ for quick setting of children values
        
        If value is not an instance of ``Field``, assume it is the
        value for the field and that the field itself should not
        be overridden