(self, item)
Delete a heading.

        Will raise a TypeError if not editable or contains a locked value.
Delete a heading.
Delete a heading .
def __delitem__(self, item):
        """Delete a heading.

        Will raise a TypeError if not editable or contains a locked value.
        """
        if not self._editable_dict:
            raise TypeError('dict isn\'t editable')

        for k, v in iteritems(self._data[item]):
            if v.get('lock', False):
                raise TypeError('value "{}.{}" is locked'.format(item, k))
                break
        else:
            del self._data[item]
def __delitem__ ( self , item ) : if not self . _editable_dict : raise TypeError ( 'dict isn\'t editable' ) for k , v in iteritems ( self . _data [ item ] ) : if v . get ( 'lock' , False ) : raise TypeError ( 'value "{}.{}" is locked' . format ( item , k ) ) break else : del self . _data [ item ]