From: Warren F. <fo...@sl...> - 2001-03-13 05:53:58
|
That's what the savespace argument to the array constructors is for: >>> a=Numeric.array(range(4), typecode='f', savespace=1) >>> a.itemsize() 4 >>> b=a*1.0 >>> b.itemsize() 4 wbf On Mon, 12 Mar 2001, Mathew Yeates wrote: > Is there some to prevent the upcast? I realize Python only has double > datatypes but still .... that shouldnt prevent me from have floats in > my object. |