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

Method _cmp

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

Source from the content-addressed store, hash-verified

930 return NotImplemented
931
932 def _cmp(self, other):
933 assert isinstance(other, timedelta)
934 return _cmp(self._getstate(), other._getstate())
935
936 def __hash__(self):
937 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