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

Method __eq__

Lib/test/test_functools.py:2024–2027  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2022 def __hash__(self):
2023 return self.x
2024 def __eq__(self, other):
2025 if self.x == 2:
2026 test_func(DoubleEq(1))
2027 return self.x == other.x
2028
2029 test_func(DoubleEq(1)) # Load the cache
2030 test_func(DoubleEq(2)) # Load the cache

Callers

nothing calls this directly

Calls 2

DoubleEqClass · 0.85
test_funcFunction · 0.50

Tested by

no test coverage detected