MCPcopy Index your code
hub / github.com/RustPython/RustPython / Other

Class Other

Lib/test/test_collections.py:760–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

validate_comparisonMethod · 0.70

Calls

no outgoing calls

Tested by 1

validate_comparisonMethod · 0.56