MCPcopy Index your code
hub / github.com/python/cpython / __isub__

Method __isub__

Lib/_weakrefset.py:86–91  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

84 def difference_update(self, other):
85 self.__isub__(other)
86 def __isub__(self, other):
87 if self is other:
88 self.data.clear()
89 else:
90 self.data.difference_update(ref(item) for item in other)
91 return self
92
93 def intersection(self, other):
94 return self.__class__(item for item in other if item in self)

Callers 1

difference_updateMethod · 0.95

Calls 2

difference_updateMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected