Augmented assignment

bonono at gmail.com bonono at gmail.com
Tue Feb 21 02:14:54 EST 2006


Terry Reedy wrote:
> Program performance might be noticeable if 'x' is something like a.b.c.d
> that takes some lookup time.  But again, I would use the += form for
> readability without testing run time.

Would x=x + 1 be more readable, regardless of the background(whether
being introduced to the += form in some other language like C before) ?




More information about the Python-list mailing list