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

Method hashit

Lib/test/test_decimal.py:1915–1919  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1913 localcontext = self.decimal.localcontext
1914
1915 def hashit(d):
1916 a = hash(d)
1917 b = d.__hash__()
1918 self.assertEqual(a, b)
1919 return a
1920
1921 #just that it's hashable
1922 hashit(Decimal(23))

Callers

nothing calls this directly

Calls 2

__hash__Method · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected