MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __hash__

Method __hash__

tools/python-3.11.9-amd64/Lib/datetime.py:1131–1135  ·  view source on GitHub ↗

Hash.

(self)

Source from the content-addressed store, hash-verified

1129 return _cmp((y, m, d), (y2, m2, d2))
1130
1131 def __hash__(self):
1132 "Hash."
1133 if self._hashcode == -1:
1134 self._hashcode = hash(self._getstate())
1135 return self._hashcode
1136
1137 # Computations
1138

Callers

nothing calls this directly

Calls 2

_getstateMethod · 0.95
hashClass · 0.50

Tested by

no test coverage detected