[pypy-commit] pypy numpy-refactor: oops, fix getitem
fijal
noreply at buildbot.pypy.org
Thu Aug 30 19:45:16 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-refactor
Changeset: r57023:784e20477b3b
Date: 2012-08-30 17:47 +0200
http://bitbucket.org/pypy/pypy/changeset/784e20477b3b/
Log: oops, fix getitem
diff --git a/pypy/module/micronumpy/arrayimpl/concrete.py b/pypy/module/micronumpy/arrayimpl/concrete.py
--- a/pypy/module/micronumpy/arrayimpl/concrete.py
+++ b/pypy/module/micronumpy/arrayimpl/concrete.py
@@ -110,7 +110,7 @@
idx = int_w(space, w_index)
if idx < 0:
idx = self.shape[i] + idx
- if idx < 0 or idx >= self.shape[0]:
+ if idx < 0 or idx >= self.shape[i]:
raise operationerrfmt(space.w_IndexError,
"index (%d) out of range (0<=index<%d", i, self.shape[i],
)
More information about the pypy-commit
mailing list