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

Method _from_iterable

Lib/_collections_abc.py:598–604  ·  view source on GitHub ↗

Construct an instance of the class from any iterable input. Must override this method if the class constructor signature does not accept an iterable for an input.

(cls, it)

Source from the content-addressed store, hash-verified

596
597 @classmethod
598 def _from_iterable(cls, it):
599 '''Construct an instance of the class from any iterable input.
600
601 Must override this method if the class constructor signature
602 does not accept an iterable for an input.
603 '''
604 return cls(it)
605
606 def __and__(self, other):
607 if not isinstance(other, Iterable):

Callers 6

__and__Method · 0.95
__or__Method · 0.95
__sub__Method · 0.95
__rsub__Method · 0.95
__xor__Method · 0.95
__ixor__Method · 0.45

Calls 1

clsClass · 0.50

Tested by

no test coverage detected