[Numpy-discussion] Possible Numeric bug with python-2.5

Darren Dale dd55@cornell....
Wed May 2 12:50:24 CDT 2007


I know Numeric is no longer supported, but I just upgraded to python-2.5 and 
now I'm having problems indexing Numeric arrays:

In [1]: import Numeric

In [2]: Numeric.arange(0,10)
Out[2]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

In [3]: Numeric.arange(0,10)[:10]
Out[3]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

In [4]: Numeric.arange(0,10)[:]
Out[4]: zeros((0,), 'l')

That last line should yield the same result as the previous command. Can 
anyone else confirm this behavior? I'm running Numeric-24.2 on 64 bit gentoo 
linux.

Thanks,
Darren


More information about the Numpy-discussion mailing list