PATCH: Augmented assignment
Paul Magwene
paul.magwene at yale.edu
Sat Jun 10 15:22:19 EDT 2000
Christian Tanzer wrote:
>
.
>
> It doesn't obfuscate code looking like:
>
> nested_structure [some_index] [another_index] = nested_structure [some_index] [another_index] + 1
Please tell me you're not REALLY writing code that looks like that, when
something like:
nested[i][j] = nested[i][j] + 1
will do just as well (and is a lot easier to read).
Undecided-on-augmented-assignment-l'y yours,
Paul
More information about the Python-list
mailing list