We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca2751 commit b699970Copy full SHA for b699970
README.md
@@ -652,14 +652,14 @@ class MyComparable:
652
### Sequence
653
```python
654
class MySequence:
655
- def __init__(self, seq):
656
- self.seq = seq
+ def __init__(self, a):
+ self.a = a
657
def __len__(self):
658
- return len(self.seq)
+ return len(self.a)
659
def __getitem__(self, i):
660
- return self.seq[i]
+ return self.a[i]
661
def __iter__(self):
662
- for el in self.seq:
+ for el in self.a:
663
yield el
664
```
665
0 commit comments