Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __hash__
Method
__hash__
Lib/_pydatetime.py:936–939 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
934
return
_cmp(self._getstate(), other._getstate())
935
936
def
__hash__(self):
937
if
self._hashcode == -1:
938
self._hashcode = hash(self._getstate())
939
return
self._hashcode
940
941
def
__bool__(self):
942
return
(self._days != 0 or
Callers
nothing calls this directly
Calls
1
_getstate
Method · 0.95
Tested by
no test coverage detected