[pypy-issue] [issue1130] numpypy indexing of 1d arrays doesn't match numpy

mikefc tracker at bugs.pypy.org
Sat Apr 14 15:45:29 CEST 2012


New submission from mikefc <coolbutuseless at gmail.com>:

Indexing of 1d arrays appears to be a special case that numpypy doesn't handle the same as 
numpy.

================================
python
>>> import numpy as np
>>> np.array([10,11,12,13])[[1,2]] 
array([11, 12])

===============================
Python 2.7.2 (1da1c1632353, Apr 13 2012, 01:00:24)
[PyPy 1.9.1-dev0 with GCC 4.2.1] on darwin
>>>> import numpypy as np
>>>> np.array([10,11,12,13])[[1,2]]
Traceback (most recent call last):
  File "<console>", line 1, in <module>
IndexError: invalid index

----------
messages: 4261
nosy: mikefc, pypy-issue
priority: bug
status: unread
title: numpypy indexing of 1d arrays doesn't match numpy

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1130>
________________________________________


More information about the pypy-issue mailing list