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

Method __eq__

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

Source from the content-addressed store, hash-verified

1185 # Comparisons of date objects with other.
1186
1187 def __eq__(self, other):
1188 if isinstance(other, date) and not isinstance(other, datetime):
1189 return self._cmp(other) == 0
1190 return NotImplemented
1191
1192 def __le__(self, other):
1193 if isinstance(other, date) and not isinstance(other, datetime):

Callers

nothing calls this directly

Calls 1

_cmpMethod · 0.95

Tested by

no test coverage detected