MCPcopy Index your code
hub / github.com/RustPython/RustPython / hashit

Method hashit

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

Source from the content-addressed store, hash-verified

1918 localcontext = self.decimal.localcontext
1919
1920 def hashit(d):
1921 a = hash(d)
1922 b = d.__hash__()
1923 self.assertEqual(a, b)
1924 return a
1925
1926 #just that it's hashable
1927 hashit(Decimal(23))

Callers

nothing calls this directly

Calls 3

hashFunction · 0.85
__hash__Method · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected