def __eq__(self, other):
        if isinstance(other, self.__class__):
            return self._items == other._items
        else:
            try:
                return len(other) == len(self._items) and all(item in self for item in other)
            except __HOLE__:
                return NotImplemented
dataset/ETHPy150Open datastax/python-driver/cassandra/util.py/SortedSet.__eq__