[Python-ideas] Augmented assignment syntax for objects.
Erik
python at lucidity.plus.com
Wed Apr 26 16:51:35 EDT 2017
On 26/04/17 01:39, Nathaniel Smith wrote:
[snip discussion of why current augmented assignment operators are
better for other reasons]
> Are there any similar arguments for .=?
It doesn't make anything more efficient, however all of the suggestions
of how to do it with current syntax (mostly decorators) _do_ make things
less efficient.
So rather than a win/win as with current augmented assignment
(compact/clearer code *and* potentially a performance improvement), it's
now a tradeoff (wordy code *or* a performance reduction).
E.
More information about the Python-ideas
mailing list