[pypy-issue] [issue1130] numpypy indexing of arrays with lists doesn't match numpy

mikefc tracker at bugs.pypy.org
Sun Apr 15 01:09:51 CEST 2012


mikefc <coolbutuseless at gmail.com> added the comment:

Found something else amiss with indexing where lists and tuples should be treated 
differently.

===================================
python
>>> np.arange(6).reshape((2,3))[[0,1]]
array([[0, 1, 2],
       [3, 4, 5]])
>>> np.arange(6).reshape((2,3))[(0,1)]
1


====================================
pypy
>>>> np.arange(6).reshape((2,3))[[0,1]]
1
>>>> np.arange(6).reshape((2,3))[(0,1)]
1

----------
status: unread -> chatting
title: numpypy indexing of 1d arrays doesn't match numpy -> numpypy indexing of arrays with lists 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