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

Method _cmp

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

Source from the content-addressed store, hash-verified

864 return NotImplemented
865
866 def _cmp(self, other):
867 assert isinstance(other, timedelta)
868 return _cmp(self._getstate(), other._getstate())
869
870 def __hash__(self):
871 if self._hashcode == -1:

Callers 5

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

Calls 3

_getstateMethod · 0.95
_cmpFunction · 0.70
_getstateMethod · 0.45

Tested by

no test coverage detected