Show More
@@ -98,6 +98,8 b' class lazyindex:' | |||||
98 | def __len__(self): |
|
98 | def __len__(self): | |
99 | return len(self.p.index) |
|
99 | return len(self.p.index) | |
100 | def load(self, pos): |
|
100 | def load(self, pos): | |
|
101 | if pos < 0: | |||
|
102 | pos += len(self.p.index) | |||
101 | self.p.load(pos) |
|
103 | self.p.load(pos) | |
102 | return self.p.index[pos] |
|
104 | return self.p.index[pos] | |
103 | def __getitem__(self, pos): |
|
105 | def __getitem__(self, pos): |
General Comments 0
You need to be logged in to leave comments.
Login now