MCPcopy Index your code
hub / github.com/python/cpython / __hash__

Method __hash__

Lib/fractions.py:996–998  ·  view source on GitHub ↗

hash(self)

(self)

Source from the content-addressed store, hash-verified

994 return Fraction(round(self / shift) * shift)
995
996 def __hash__(self):
997 """hash(self)"""
998 return _hash_algorithm(self._numerator, self._denominator)
999
1000 def __eq__(a, b):
1001 """a == b"""

Callers

nothing calls this directly

Calls 1

_hash_algorithmFunction · 0.85

Tested by

no test coverage detected