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

Method __sub__

Lib/_collections_abc.py:628–634  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

626 __ror__ = __or__
627
628 def __sub__(self, other):
629 if not isinstance(other, Set):
630 if not isinstance(other, Iterable):
631 return NotImplemented
632 other = self._from_iterable(other)
633 return self._from_iterable(value for value in self
634 if value not in other)
635
636 def __rsub__(self, other):
637 if not isinstance(other, Set):

Callers

nothing calls this directly

Calls 1

_from_iterableMethod · 0.95

Tested by

no test coverage detected