[Numpy-discussion] different behaviour in asfarray(None)

Stéfan van der Walt stefan at sun.ac.za
Wed Apr 23 03:30:18 EDT 2008


2008/4/23 Travis E. Oliphant <oliphant at enthought.com>:
> I'm curious who made the change and why.  There was code intentionally
> there to interpret None as nan for float arrays.   So, I don't
> understand why and/or when it changed.

I find that behaviour counterintuitive (I'm not the one who changed it, though).

Why shouldn't asfarray behave the same way as np.array(x).astype(float)?

Regards
Stéfan



More information about the NumPy-Discussion mailing list