(self, key)
Returns an arbitrary item associated to the given key. Raises ``KeyError``
        if no such key exists.

        Example:

            >>> d = multidict([("spam", "eggs"), ("spam", "bacon")])
            >>> d["spam"]
            'eggs'
Returns an arbitrary item associated to the given key. Raises ``KeyError``
        if no such key exists.
Returns an arbitrary item associated to the given key . Raises KeyError if no such key exists .
def __getitem__(self, key):
        """Returns an arbitrary item associated to the given key. Raises ``KeyError``
        if no such key exists.

        Example:

            >>> d = multidict([("spam", "eggs"), ("spam", "bacon")])
            >>> d["spam"]
            'eggs'
        """
        try:
            return self._dict[key][0]
        except IndexError:
            raise KeyError(key)
def __getitem__ ( self , key ) : try : return self . _dict [ key ] [ 0 ] except IndexError : raise KeyError ( key )