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

Method __eq__

Lib/_pydatetime.py:902–906  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

900 # Comparisons of timedelta objects with other.
901
902 def __eq__(self, other):
903 if isinstance(other, timedelta):
904 return self._cmp(other) == 0
905 else:
906 return NotImplemented
907
908 def __le__(self, other):
909 if isinstance(other, timedelta):

Callers

nothing calls this directly

Calls 1

_cmpMethod · 0.95

Tested by

no test coverage detected