MCPcopy Index your code
hub / github.com/RustPython/RustPython / __eq__

Method __eq__

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

Source from the content-addressed store, hash-verified

1170 # Comparisons of date objects with other.
1171
1172 def __eq__(self, other):
1173 if isinstance(other, date) and not isinstance(other, datetime):
1174 return self._cmp(other) == 0
1175 return NotImplemented
1176
1177 def __le__(self, other):
1178 if isinstance(other, date) and not isinstance(other, datetime):

Callers

nothing calls this directly

Calls 2

_cmpMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected