def __eq__(self, other):
        if isinstance(other, OrderedMap):
            return self._items == other._items
        try:
            d = dict(other)
            return len(d) == len(self._items) and all(i[1] == d[i[0]] for i in self._items)
        except KeyError:
            return False
        except __HOLE__:
            pass
        return NotImplemented
dataset/ETHPy150Open datastax/python-driver/cassandra/util.py/OrderedMap.__eq__