Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __eq__
Method
__eq__
Lib/test/test_set.py:1918–1922 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
1916
def
__hash__(self):
1917
return
0
1918
def
__eq__(self, other):
1919
if
not self.flag:
1920
self.flag = True
1921
s.add(X())
1922
return
self is other
1923
1924
a = X()
1925
s = set()
Callers
nothing calls this directly
Calls
2
X
Class · 0.70
add
Method · 0.45
Tested by
no test coverage detected