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

Method __hash__

Lib/test/test_decimal.py:1994–1995  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1992 self.assertEqual(hash(value), object.__hash__(value))
1993 class H:
1994 def __hash__(self):
1995 return 42
1996 class D(Decimal, H):
1997 pass
1998 value = D('NaN')

Callers 2

hashitMethod · 0.45
test_hash_method_nanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected