From: Francesc A. <fa...@ca...> - 2006-09-27 11:22:46
|
El dc 27 de 09 del 2006 a les 10:01 +0100, en/na James Graham va escriure: > Francesc Altet wrote: > > So far so good, but is the next the intended behaviour? > >=20 > >>>> numpy.typeDict['i4'] > > <type 'numpy.int32'> > >>>> numpy.typeDict['int32'] > > <type 'numpy.int32'> > >>>> numpy.typeDict['i4'] =3D=3D numpy.typeDict['int32'] > > False > >=20 > >=20 > By way of comparison, I get (Linux/AMD 64): >=20 > In [1]: import numpy >=20 > In [2]: numpy.typeDict['i4'] =3D=3D numpy.typeDict['int32'] > Out[2]: True >=20 > In [3]: numpy.typeDict['i4'] is numpy.typeDict['int32'] > Out[3]: True >=20 > In [4]: numpy.__version__ > Out[4]: '1.0b5' Yeah, but I'm on Linux/AMD32. I'd bet that in your machine you will get something like: In [2]: numpy.typeDict['i8'] =3D=3D numpy.typeDict['int64'] Out[2]: False --=20 >0,0< Francesc Altet http://www.carabos.com/ V V C=C3=A1rabos Coop. V. Enjoy Data "-" |