Got it - Thanks Gerry
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Stéfan van der Walt Sent: Friday, April 17, 2009 8:42 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Indexing Hi Gerry 2009/4/17 Talbot, Gerry <[email protected]>: > 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 [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion _______________________________________________ Numpy-discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
