def __delitem__(self, key):
        """Remove all key/value pairs by the given key.

        Raises a KeyError if there are none.

        >>> m = MutableMultiMap([('a', 1), ('b', 2), ('b', 3), ('c', 4), ('d', 5), ('c', 6)])
        >>> del m['a']
        >>> m
        MutableMultiMap([('b', 2), ('b', 3), ('c', 4), ('d', 5), ('c', 6)])
        >>> m['b']
        2
        >>> m.getall('c')
        [4, 6]

        >>> m = MutableMultiMap([('a', 1), ('b', 2), ('b', 3), ('c', 4), ('d', 5), ('c', 6)])
        >>> del m['b']
        >>> m
        MutableMultiMap([('a', 1), ('c', 4), ('d', 5), ('c', 6)])
        >>> m['a']
        1
        >>> m['c']
        4
        >>> m.getall('c')
        [4, 6]

        >>> m = MutableMultiMap(a=1)
        >>> del m['x']
        Traceback (most recent call last):
        ...
        KeyError: 'x'

        """
        key = self._conform_key(key)
        del_ids = self._key_ids[key]
        if not del_ids:
            raise KeyError(key)

        # Remove the ids.
        del self._key_ids[key]

        self._remove_pairs(del_ids)
def __delitem__ ( self , key ) : key = self . _conform_key ( key ) del_ids = self . _key_ids [ key ] if not del_ids : raise KeyError ( key ) del self . _key_ids [ key ] self . _remove_pairs ( del_ids )
Remove all key/value pairs by the given key.

        Raises a KeyError if there are none.

        >>> m = MutableMultiMap([('a', 1), ('b', 2), ('b', 3), ('c', 4), ('d', 5), ('c', 6)])
        >>> del m['a']
        >>> m
        MutableMultiMap([('b', 2), ('b', 3), ('c', 4), ('d', 5), ('c', 6)])
        >>> m['b']
        2
        >>> m.getall('c')
        [4, 6]

        >>> m = MutableMultiMap([('a', 1), ('b', 2), ('b', 3), ('c', 4), ('d', 5), ('c', 6)])
        >>> del m['b']
        >>> m
        MutableMultiMap([('a', 1), ('c', 4), ('d', 5), ('c', 6)])
        >>> m['a']
        1
        >>> m['c']
        4
        >>> m.getall('c')
        [4, 6]

        >>> m = MutableMultiMap(a=1)
        >>> del m['x']
        Traceback (most recent call last):
        ...
        KeyError: 'x'