[Numpy-discussion] Strange behavior of operator *=

Alan G Isaac alan.isaac at gmail.com
Tue Apr 5 09:39:01 EDT 2011


On 4/5/2011 9:26 AM, François Steinmetz wrote:
> It does not change the dtype, 'int' is just interpreted as 'int64' :


So the meaning of 'int' is system specific?

     >>> import numpy as np; a=np.eye(2,dtype='int'); a.dtype
     dtype('int32')

Alan Isaac




More information about the NumPy-Discussion mailing list