Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
_getstate
Method · 0.95
_cmp
Function · 0.70
_getstate
Method · 0.45
Tested by
no test coverage detected