Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __hash__
Method
__hash__
Lib/test/test_decimal.py:1999–2000 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1997
self.assertEqual(hash(value), object.__hash__(value))
1998
class
H:
1999
def
__hash__(self):
2000
return
42
2001
class
D(Decimal, H):
2002
pass
2003
value = D(
'NaN'
)
Callers
2
hashit
Method · 0.45
test_hash_method_nan
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected