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

Method _cmp

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

Source from the content-addressed store, hash-verified

1123 return NotImplemented
1124
1125 def _cmp(self, other):
1126 assert isinstance(other, date)
1127 y, m, d = self._year, self._month, self._day
1128 y2, m2, d2 = other._year, other._month, other._day
1129 return _cmp((y, m, d), (y2, m2, d2))
1130
1131 def __hash__(self):
1132 "Hash."

Callers 5

__eq__Method · 0.95
__le__Method · 0.95
__lt__Method · 0.95
__ge__Method · 0.95
__gt__Method · 0.95

Calls 1

_cmpFunction · 0.70

Tested by

no test coverage detected