Francesc Altet wrote:
> Hello,
>
> Sorry for being insistent, but I recognize that I'm having a bad time
> with NumPy data type rational. Is there an explanation for this?:
>
>   
Your actually talking about the array scalar types not the data-type 
objects. 

But, more to the point....

>>>> numpy.typeDict['i4']
>>>>         
> <type 'numpy.int32'>
>   
>>>> numpy.typeDict['int32']
>>>>         
> <type 'numpy.int32'>
>   
>>>> numpy.typeDict['i4'] == numpy.typeDict['int32']
>>>>         
> False
>
>   
On my 32-bit system I get:

numpy.sctypeDict['i4'] is numpy.sctypeDict['int32']

True


Hmm..... I don't know why you are getting a different result, but 
perhaps it has to do with the fact that the character alias ('i4') is 
not getting set at the same type as 'int32'.  I just fixed that.   That 
should fix the problem.

-travis




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to