Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __hash__
Method
__hash__
Lib/test/test_set.py:32–33 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
30
31
class
BadCmp:
32
def
__hash__(self):
33
return
1
34
def
__eq__(self, other):
35
raise
RuntimeError
36
Callers
5
test_hash
Method · 0.45
testHash
Method · 0.45
testNetworkV4HashCollisions
Method · 0.45
testNetworkV6HashCollisions
Method · 0.45
__hash__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected