[Numpy-discussion] int and long issues
Mads Ipsen
madsipsen@gmail....
Thu Jan 10 04:32:45 CST 2013
Hi,
I find this to be a little strange:
x = numpy.arange(10)
isinstance(x[0],int)
gives True
y = numpy.where(x < 5)[0]
isinstance(y[0],int)
gives False
isinstance(y[0],long)
gives True
Specs: Python 2.7.2, numpy-1.6.1, Win7, 64 bit
Best regards,
Mads
--
+-----------------------------------------------------+
| Mads Ipsen |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv | |
| DK-2500 Valby | phone: +45-29716388 |
| Denmark | email: mads.ipsen@gmail.com |
+----------------------+------------------------------+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130110/58e7870c/attachment.html
More information about the NumPy-Discussion
mailing list