(self, other)
| 19 | def next(self): return self._it.next() |
| 20 | |
| 21 | def __add__(self, other): |
| 22 | if not isinstance(other,Iter): |
| 23 | raise TypeError('can only add Iter (not "%s") to Iter' % |
| 24 | other.__class__.__name__) |
| 25 | return Iter(chain(self._it, other._it)) |
| 26 | |
| 27 | def __mul__(self, num): return Iter(chain(*tee(self._it,num))) |
| 28 | __rmul__ = __mul__ |