A Divendres 27 Octubre 2006 17:58, Joris De Ridder va escriure:
> Hi,
>
> Is the following behaviour of astype() intentional in NumPy 1.0?
>
> >>> x = array([1,2,3])
> >>> x.astype(None)
>
> array([ 1.,  2.,  3.])
>
> That is, the int32 is converted to float64.

Yes, I think the behaviour is intended. This is because 'float64' is the 
default type in NumPy from some months ago (before the default was 'int_')

HTH,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to