Show More
@@ -647,7 +647,7 b' class BaseIndexObject(object):' | |||||
647 | if not isinstance(i, int): |
|
647 | if not isinstance(i, int): | |
648 | raise TypeError(b"expecting int indexes") |
|
648 | raise TypeError(b"expecting int indexes") | |
649 | if i < 0 or i >= len(self): |
|
649 | if i < 0 or i >= len(self): | |
650 | raise IndexError |
|
650 | raise IndexError(i) | |
651 |
|
651 | |||
652 | def __getitem__(self, i): |
|
652 | def __getitem__(self, i): | |
653 | if i == -1: |
|
653 | if i == -1: |
General Comments 0
You need to be logged in to leave comments.
Login now