Python 2.0b1 is released!
g2 at seebelow.org
Sat Sep 9 16:33:12 CEST 2000
Stuart Ford wrote:
> > > - Augmented assignment, e.g. x += 1
> > I cannot resist saying that I still consider this an archane "C" -like
> > feature which should be better solved with the replace or macro
> > function of the editor. I always liked the clearness of the normal
> > x = x + 1
> I have been wanting this feature in Python for ages... as I tend to use very
> variable names from time to time and it's a bit of a pain to type..
> FoundationAngleComputationValue = FoundationAngleComputationValue * 1.035
I agree. Augmented assignment is also a lot more "mnemonic": once
you're familiar with the concept (as virtually all Python programmers
probably are...), then it conveys "meaning" without having to mentally
"decode" the statement.
Grant R. Griffin g2 at dspguru.com
Publisher of dspGuru http://www.dspguru.com
Iowegian International Corporation http://www.iowegian.com
More information about the Python-list