Sebastian Berg wrote: > Known issue, I think someone posted about it a while ago too. The numpy > min is array aware, and it expects an array. The second argument is the > axis, which in the case of a single number doesn't matter. > > On Tue, 2009-11-17 at 07:07 +0000, Chris wrote: > >> I'm pretty sure this shouldn't happen: >> >> In [1]: from numpy import min >> >> In [2]: min(5000, 4) >> Out[2]: 5000 >>
I think I have to agree with the original poster. It would be more correct to rise an exception because the axis is beyond the number of axes than to return a confusing result. Armando _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion