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

Aahz aahz at pythoncraft.com
Sat Aug 11 17:25:29 EDT 2007


In article <Xns99896DB601AF1OKB at 199.45.49.11>,
OKB (not okblacke) <brenNOSPAMbarn at NObrenSPAMbarn.net> 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 pythoncraft.com)           <*>         http://www.pythoncraft.com/

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



More information about the Python-list mailing list