Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ intersection
Method
intersection
Lib/_weakrefset.py:93–94 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
91
return
self
92
93
def
intersection(self, other):
94
return
self.__class__(item
for
item in other
if
item in self)
95
__and__ = intersection
96
97
def
intersection_update(self, other):
Callers
5
isdisjoint
Method · 0.95
test_intersection
Method · 0.95
gather_ids
Function · 0.45
_isreservedname
Function · 0.45
changed_files
Function · 0.45
Calls
1
__class__
Method · 0.45
Tested by
1
test_intersection
Method · 0.76