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

Method __eq__

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

Source from the content-addressed store, hash-verified

2260 # Comparisons of datetime objects with other.
2261
2262 def __eq__(self, other):
2263 if isinstance(other, datetime):
2264 return self._cmp(other, allow_mixed=True) == 0
2265 else:
2266 return NotImplemented
2267
2268 def __le__(self, other):
2269 if isinstance(other, datetime):

Callers

nothing calls this directly

Calls 1

_cmpMethod · 0.95

Tested by

no test coverage detected