| 15 | fresh=['_operator']) |
| 16 | |
| 17 | class Seq1: |
| 18 | def __init__(self, lst): |
| 19 | self.lst = lst |
| 20 | def __len__(self): |
| 21 | return len(self.lst) |
| 22 | def __getitem__(self, i): |
| 23 | return self.lst[i] |
| 24 | def __add__(self, other): |
| 25 | return self.lst + other.lst |
| 26 | def __mul__(self, other): |
| 27 | return self.lst * other |
| 28 | def __rmul__(self, other): |
| 29 | return other * self.lst |
| 30 | |
| 31 | class Seq2(object): |
| 32 | def __init__(self, lst): |