[Python-ideas] Unpacking iterables for augmented assignment

Stephen J. Turnbull turnbull.stephen.fw at u.tsukuba.ac.jp
Tue Aug 28 04:00:21 EDT 2018


Tim Peters writes:

 > [Stephen J. Turnbull[
 > > No.  It's equivalent to
 > >
 > >     <expr3> = <expr4>
 > >     <expr2> = <expr3>
 > >     <expr1> = <expr2>
 > >
 > > and the order matters because the <expr>s may have side effects.
 > 
 > This is tricky stuff.

Thank you, and Guido, for the correction.



More information about the Python-ideas mailing list