|
From: Curzio B. <cur...@gm...> - 2005-07-11 17:38:53
|
Hi all,
I noticed the following (unexpected for me) behaviour:
>>> a =3D NA.arange(12)
>>> a.shape =3D (3,4)
>>> a[[0,2]][:,:2] =3D a[[0,2]][:,2:]
>>> print a
array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11]])
rather than=20
array([[ 2, 3, 2, 3],
[ 4, 5, 6, 7],
[ 10, 11, 10, 11]])
as I was expecting. This happens only if I try to combine indices
lists with slices.
Is it by design or I ran into a bug?
curzio
|