[Numpy-discussion] flatnonzero fails with lists

Alan G Isaac alan.isaac at gmail.com
Tue Feb 25 00:37:29 EST 2014


I was surprised that `flatnonzero` fails with lists
because it calls the `ravel` method, which they do not have,
instead of using the `ravel` function.

I do not know that there is any policy that NumPy
functions should always work on lists,
but I have gotten used to them doing so. So I'm just
asking, is this intentional?  (version 1.7.1)

Thanks,
Alan Isaac



More information about the NumPy-Discussion mailing list