'Dict-like __getitem__() for compatibility with client code. Throws exception
if there are more than one cookie with name. In that case, use the more
explicit get() method instead. Caution: operation is O(n), not O(1).'

def __getitem__(self, name):

    return self._find_no_duplicates(name)
