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