Re: [Numpy-discussion] flatnonzero fails with lists

2014-02-24 Thread Charles R Harris
On Mon, Feb 24, 2014 at 10:37 PM, Alan G Isaac wrote: > 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

[Numpy-discussion] flatnonzero fails with lists

2014-02-24 Thread Alan G Isaac
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 aski