Re: [Numpy-discussion] 32bit integers as list indices

2006-11-14 Thread Travis Oliphant
Neilen Marais wrote: >Hi, > >I'm not sure if the following is expected to work on a 64bit machine: > >In [381]: import numpy as N >In [382]: l = range(3) >In [383]: i32 = N.array([0,2], N.int32) >In [384]: i64 = N.array([0,2], N.int64) >In [385]: l[i32[0]] >

[Numpy-discussion] 32bit integers as list indices

2006-11-14 Thread Neilen Marais
Hi, I'm not sure if the following is expected to work on a 64bit machine: In [381]: import numpy as N In [382]: l = range(3) In [383]: i32 = N.array([0,2], N.int32) In [384]: i64 = N.array([0,2], N.int64) In [385]: l[i32[0]]