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)
| 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): |