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

Stéfan van der Walt stefan@sun.ac...
Wed Apr 23 02:30:18 CDT 2008


2008/4/23 Travis E. Oliphant <oliphant@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