| 29 | return other * self.lst |
| 30 | |
| 31 | class Seq2(object): |
| 32 | def __init__(self, lst): |
| 33 | self.lst = lst |
| 34 | def __len__(self): |
| 35 | return len(self.lst) |
| 36 | def __getitem__(self, i): |
| 37 | return self.lst[i] |
| 38 | def __add__(self, other): |
| 39 | return self.lst + other.lst |
| 40 | def __mul__(self, other): |
| 41 | return self.lst * other |
| 42 | def __rmul__(self, other): |
| 43 | return other * self.lst |
| 44 | |
| 45 | class BadIterable: |
| 46 | def __iter__(self): |