astype() behaviour

Joris De Ridder joris at ster.kuleuven.be
Fri Oct 27 10:58:54 CDT 2006


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.

J.


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


-------------------------------------------------------------------------
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




More information about the Numpy-discussion mailing list