MCPcopy 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

isdisjointMethod · 0.95
test_intersectionMethod · 0.95
gather_idsFunction · 0.45
_isreservednameFunction · 0.45
changed_filesFunction · 0.45

Calls 1

__class__Method · 0.45

Tested by 1

test_intersectionMethod · 0.76