[Numpy-discussion] trivial question: how to compare dtype - but ignoring byteorder ?

Karol Langner karol.langner at kn.pl
Mon Jul 24 13:36:54 CDT 2006


On Monday 24 July 2006 20:10, Sebastian Haase wrote:
> Hi !
>  Thanks for the reply.
> Did you actually run this ? I get:
> #>>> a=N.arange(10, dtype=N.float32)
> #>>> a.dtype == N.float32
> #True
> #>>> N.__version__
> #'0.9.9.2823'

Hi,

Looks like I need to upgrade my working version or something...

>>> import numpy as N
>>> N.__version__
'0.9.8'
>>> a=N.arange(10, dtype=N.float32)
>>> a.dtype == N.float32
False

Cheers,
Karol

-- 
written by Karol Langner
pon lip 24 20:36:05 CEST 2006




More information about the Numpy-discussion mailing list