Open numpy-gitbot opened 12 years ago
Original ticket http://projects.scipy.org/numpy/ticket/2199 on 2012-08-09 by trac user batavus, assigned to unknown.
0-d arrays are not iterable:
list(numpy.array(1)) Traceback (most recent call last): File "", line 1, in TypeError: iteration over a 0-d array
Consequently, they do not provide the sequence protocol: PySequence_Length and PySequence_GetItem fail when called for a 0-d array.
However, PySequence_Check returns 1. It should return 0.
Original ticket http://projects.scipy.org/numpy/ticket/2199 on 2012-08-09 by trac user batavus, assigned to unknown.
0-d arrays are not iterable:
Consequently, they do not provide the sequence protocol: PySequence_Length and PySequence_GetItem fail when called for a 0-d array.
However, PySequence_Check returns 1. It should return 0.