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

Method __hash__

tools/python-3.11.9-amd64/Lib/datetime.py:870–873  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

868 return _cmp(self._getstate(), other._getstate())
869
870 def __hash__(self):
871 if self._hashcode == -1:
872 self._hashcode = hash(self._getstate())
873 return self._hashcode
874
875 def __bool__(self):
876 return (self._days != 0 or

Callers

nothing calls this directly

Calls 2

_getstateMethod · 0.95
hashClass · 0.50

Tested by

no test coverage detected