Slice implementation bug

2011-05-12 Thread Tambet
Hello! Let's say slice is multidimensional now - how to interpret it? I excpect these to work: - m[0, 3] - get one element from matrix - m[0:2, 0:2] - get four elements from matrix, iterate over them (I have actually an rtree if it doesn't make sense to you) But it won't, because if

Re: Slice implementation bug

2011-05-12 Thread Andrea Crotti
Tambet qtv...@gmail.com writes: Hello! Let's say slice is multidimensional now - how to interpret it? But who said that slice is multidimensional in the first place? Since python is not matlab I don't think it will ever be done, so what's the purpose of talking about a bug in something that

Re: Slice implementation bug

2011-05-12 Thread Robert Kern
On 5/12/11 6:06 AM, Tambet wrote: Hello! Let's say slice is multidimensional now - how to interpret it? I excpect these to work: * m[0, 3] - get one element from matrix * m[0:2, 0:2] - get four elements from matrix, iterate over them (I have actually an rtree if it doesn't make