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

Method __and__

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

Source from the content-addressed store, hash-verified

604 return cls(it)
605
606 def __and__(self, other):
607 if not isinstance(other, Iterable):
608 return NotImplemented
609 return self._from_iterable(value for value in other if value in self)
610
611 __rand__ = __and__
612

Callers

nothing calls this directly

Calls 1

_from_iterableMethod · 0.95

Tested by

no test coverage detected