MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __eq__

Method __eq__

tools/python-3.11.9-amd64/Lib/datetime.py:2100–2106  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2098 # Comparisons of datetime objects with other.
2099
2100 def __eq__(self, other):
2101 if isinstance(other, datetime):
2102 return self._cmp(other, allow_mixed=True) == 0
2103 elif not isinstance(other, date):
2104 return NotImplemented
2105 else:
2106 return False
2107
2108 def __le__(self, other):
2109 if isinstance(other, datetime):

Callers

nothing calls this directly

Calls 1

_cmpMethod · 0.95

Tested by

no test coverage detected