Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __hash__
Method
__hash__
Lib/_pydatetime.py:1219–1223 ·
view source on GitHub ↗
Hash.
(self)
Source
from the content-addressed store, hash-verified
1217
return
_cmp((y, m, d), (y2, m2, d2))
1218
1219
def
__hash__(self):
1220
"Hash."
1221
if
self._hashcode == -1:
1222
self._hashcode = hash(self._getstate())
1223
return
self._hashcode
1224
1225
# Computations
1226
Callers
nothing calls this directly
Calls
1
_getstate
Method · 0.95
Tested by
no test coverage detected