On Mon, Feb 24, 2014 at 10:37 PM, Alan G Isaac <[email protected]> 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 on lists, > but I have gotten used to them doing so. So I'm just > asking, is this intentional? (version 1.7.1) > > It's documented to take an ndarray, but I see no reason that it shouldn't be modified to take array_like. Chuck
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
