astype() behaviour

Joris De Ridder joris at
Fri Oct 27 10:58:54 CDT 2006


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.



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

More information about the Numpy-discussion mailing list