1 parent 1c69eb5 commit f00a776Copy full SHA for f00a776
1 file changed
lib/core/bigarray.py
@@ -78,6 +78,8 @@ def __getslice__(self, i, j):
78
return retval
79
80
def __getitem__(self, y):
81
+ if y < 0:
82
+ y += len(self)
83
index = y / BIGARRAY_CHUNK_LENGTH
84
offset = y % BIGARRAY_CHUNK_LENGTH
85
chunk = self.chunks[index]
0 commit comments