(self, item, value)
Create a heading.
        Deletes the old one before creating. To update without deleting, use .update().

        Will raise a TypeError if it is not editable, or if the input is not a dict.
Create a heading.
        Deletes the old one before creating. To update without deleting, use .update().
Create a heading . Deletes the old one before creating . To update without deleting use . update () .
def __setitem__(self, item, value):
        """Create a heading.
        Deletes the old one before creating. To update without deleting, use .update().

        Will raise a TypeError if it is not editable, or if the input is not a dict.
        """
        if not self._editable_dict:
            raise TypeError('dict isn\'t editable')

        #Figure out the different types of values
        if isinstance(value, dict):
            if item in self._data:
                self.__delitem__(item)
            self._data[item] = {}
            for k, v in iteritems(value):
                self._data[item][k] = _process_input(v)
        else:
            raise TypeError('invalid type "{}", must be dict')
def __setitem__ ( self , item , value ) : if not self . _editable_dict : raise TypeError ( 'dict isn\'t editable' ) #Figure out the different types of values if isinstance ( value , dict ) : if item in self . _data : self . __delitem__ ( item ) self . _data [ item ] = { } for k , v in iteritems ( value ) : self . _data [ item ] [ k ] = _process_input ( v ) else : raise TypeError ( 'invalid type "{}", must be dict' )