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

Method __eq__

Lib/test/test_fractions.py:39–39  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

37 return NotImplemented
38
39 def __eq__(self, other): return self._richcmp(other, operator.eq)
40 def __le__(self, other): return self._richcmp(other, operator.le)
41 def __lt__(self, other): return self._richcmp(other, operator.lt)
42 def __ge__(self, other): return self._richcmp(other, operator.ge)

Callers

nothing calls this directly

Calls 1

_richcmpMethod · 0.95

Tested by

no test coverage detected