A. M. Archibald | 2 Sep 2006 03:06
Picon
Gravatar

Re: fancy indexing and +=

On 01/09/06, Robert Kern <robert.kern <at> gmail.com> wrote:

> Nor should we. According to the reference manual, augmented assignment methods
> should be implemented such that
>
>    x += y
>
> is nearly equivalent to
>
>    x = x + y
>
> with the exception of possible in-place modification of x.

One could argue that what I was asking for is the appropriate notion
of "in-place modification" in this context, but that's a technicality.
I suppose either version will be surprising to somebody. Thanks for
your prompt reply.

A.M. Archibald

Gmane