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:46–48 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
44
def
__init__(self, *args):
45
self.hash_count = 0
46
def
__hash__(self):
47
self.hash_count += 1
48
return
int.__hash__(self)
49
50
class
TestJointOps:
51
# Tests common to both set and frozenset
Callers
nothing calls this directly
Calls
1
__hash__
Method · 0.45
Tested by
no test coverage detected