[Numpy-discussion] argwhere does not accept py list

Sebastian Haase seb.haase@gmail....
Fri Jul 3 04:15:10 CDT 2009


Hi,
should this not be accepted:
>>> N.argwhere([4,0,2,1,3])
?
instead I get

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "./numpy/core/numeric.py", line 510, in argwhere
AttributeError: 'list' object has no attribute 'nonzero'
>>> N.argwhere(N.array([4,0,2,1,3]))
[[0]
 [2]
 [3]
 [4]]
>>> N.__version__
'1.3.0'
>>>

Just a note.
-Sebastian Haase


More information about the Numpy-discussion mailing list