[SciPy-dev] openopt example mmp_1.py

Dave dave.hirschfeld@gmail....
Sun Feb 3 09:32:14 CST 2008


Alan G Isaac <aisaac <at> american.edu> writes:

> 
> Odd.
> What about
> id(type(ind))
> id(int32)
> ?
> 
> Cheers,
> Alan Isaac
> 

ipdb> ind
0
ipdb> type(ind)
<type 'numpy.int32'>
ipdb> int32
<type 'numpy.int32'>
ipdb> type(ind) is int32
False
ipdb> id(type(ind))
1810415712
ipdb> id(int32)
1810415520
ipdb> import numpy
ipdb> numpy.int32
<type 'numpy.int32'>
ipdb> id(numpy.int32)
1810415520
ipdb>

-Dave



More information about the Scipy-dev mailing list