MCPcopy Index your code
hub / github.com/python/cpython / Other

Class Other

Lib/test/test_collections.py:761–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759 operators[name] = getattr(operator, name)
760
761 class Other:
762 def __init__(self):
763 self.right_side = False
764 def __eq__(self, other):
765 self.right_side = True
766 return True
767 __lt__ = __eq__
768 __gt__ = __eq__
769 __le__ = __eq__
770 __ge__ = __eq__
771 __ne__ = __eq__
772 __ror__ = __eq__
773 __rand__ = __eq__
774 __rxor__ = __eq__
775 __rsub__ = __eq__
776
777 for name, op in operators.items():
778 if not hasattr(instance, name):

Callers 1

validate_comparisonMethod · 0.70

Calls

no outgoing calls

Tested by 1

validate_comparisonMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…