Hi Gerry

2009/4/17 Talbot, Gerry <gerry.tal...@amd.com>:
> I stumbled across this anomaly, the assignment to ncycle[i][b] fails, yet
> ncycle[:][b] works and the final print works.  Is this a known bug or
> limitation ?  I am running numpy-1.2.1 with python 2.5.4

The fancy indexing (indexing with an array) in ncycle[i] makes a copy,
so you are assigning to a temporary copy which disappears soon after.

Regards
Stéfan
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to