def __eq__(self, other):
        if isinstance(other, OrderedSet):
            return len(self) == len(other) and list(self) == list(other)
        return set(self) == set(other)

            
## end of http://code.activestate.com/recipes/576694/ }}}
dataset/ETHPy150Open ooici/pyon/pyon/util/set.py/OrderedSet.__eq__/original