Augmented assignment (was Re: Something in the function tutorial confused me.)

Aahz aahz at
Sat Aug 11 23:25:29 CEST 2007

In article <Xns99896DB601AF1OKB at>,
OKB (not okblacke) <brenNOSPAMbarn at> wrote:
>    	This sentence is phrased as though it is the whole story, but it 
>isn't, because the operation might not in fact wind up being an 
>assignment.  Shouldn't there be an "except see below" or something 
>there, to alert the reader that in some cases a true assignment doesn't 
>occur?  (I realize that the exception follows quite closely on the heels 
>of this sentence, but it doesn't follow immediately, and is separated by 
>a paragraph break and intervening material about the parallel to 
>unaugmented x = x + 1.  On initial reading my tendency is to read the 
>end of the sentence quoted above, see a paragraph break and apparently 
>explanatory material, and go "oh, okay, I now have the full 
>specification of this syntax" when in fact I don't.)

That's a good idea -- doc patches are always welcome!
Aahz (aahz at           <*>

"And if that makes me an elitist...I couldn't be happier."  --JMS

More information about the Python-list mailing list