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

Method __ixor__

Lib/_collections_abc.py:748–759  ·  view source on GitHub ↗
(self, it)

Source from the content-addressed store, hash-verified

746 return self
747
748 def __ixor__(self, it):
749 if it is self:
750 self.clear()
751 else:
752 if not isinstance(it, Set):
753 it = self._from_iterable(it)
754 for value in it:
755 if value in self:
756 self.discard(value)
757 else:
758 self.add(value)
759 return self
760
761 def __isub__(self, it):
762 if it is self:

Callers

nothing calls this directly

Calls 4

clearMethod · 0.95
discardMethod · 0.95
addMethod · 0.95
_from_iterableMethod · 0.45

Tested by

no test coverage detected