def __eq__(self, other):
            if self is other:
                return True
            if (not hasattr(other, 'name') or
                not hasattr(other, 'attrs') or
                not hasattr(other, 'contents') or
                self.name != other.name or
                self.attrs != other.attrs or
                len(self) != len(other)):
                return False
            for i, my_child in enumerate(self.contents):
                if my_child != other.contents[i]:
                    return False
            return True
Return a range of members in a sorted set, by lexicographical range.
dataset/ETHPy150Open mtlevolio/pylinkchecker/pylinkchecker/bs4/element.py/Tag.__eq__--crossover with--dataset/ETHPy150Open coleifer/walrus/walrus/containers.py/ZSet.range_by_lex