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

Method __eq__

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

Source from the content-addressed store, hash-verified

2053 def __hash__(self):
2054 return self.x
2055 def __eq__(self, other):
2056 if self.x == 2:
2057 test_func(DoubleEq(1))
2058 return self.x == other.x
2059
2060 test_func(DoubleEq(1)) # Load the cache
2061 test_func(DoubleEq(2)) # Load the cache

Callers

nothing calls this directly

Calls 2

DoubleEqClass · 0.85
test_funcClass · 0.70

Tested by

no test coverage detected