On 32-bit karmic 9.10 (using Numeric 24.2, python 2.6.4), I get the expected behavior:
>>> Numeric.arange(0,3)[1:]
array([1, 2])
>>> Numeric.arange(0,3)[1::]
array([1, 2])
Using the same versions on 64-bit karmic/9.10, I get the following:
>> Numeric.arange(0,3)[1:] #This gives the wrong answer
zeros((0,), 'l')
>>> Numeric.arange(0,3)[1::] #This seems to work
array([1, 2])
I can confirm that this is a 32/64 bit problem.
On 32-bit karmic 9.10 (using Numeric 24.2, python 2.6.4), I get the expected behavior: arange( 0,3)[1: ] arange( 0,3)[1: :]
>>> Numeric.
array([1, 2])
>>> Numeric.
array([1, 2])
Using the same versions on 64-bit karmic/9.10, I get the following: arange( 0,3)[1: ] #This gives the wrong answer arange( 0,3)[1: :] #This seems to work
>> Numeric.
zeros((0,), 'l')
>>> Numeric.
array([1, 2])