parameters: (self, name, value)
return_statement: return self.__setitem__(name, value)
docstring: Set values in this dict using attributes.
  
      This allows for foo.bar instead of foo['bar'].
  
      Args:
        name: The name of the key, 'bar' in the example above.
        value: The value to associate with that key.
docstring_summary: Set values in this dict using attributes.
docstring_tokens: Set values in this dict using attributes .
function: def __setattr__(self, name, value):
      """Set values in this dict using attributes.
  
      This allows for foo.bar instead of foo['bar'].
  
      Args:
        name: The name of the key, 'bar' in the example above.
        value: The value to associate with that key."""
      # special case, self.checksum returns the sha1, not the checksum dict.
      if name == 'checksum':
        self.setdefault('checksum', {})['sha1'] = value
        return
      return self.__setitem__(name, value)
function_tokens: def __setattr__ ( self , name , value ) : # special case, self.checksum returns the sha1, not the checksum dict. if name == 'checksum' : self . setdefault ( 'checksum' , { } ) [ 'sha1' ] = value return return self . __setitem__ ( name , value )