Does the language specify that things will work this way, or is it undefined / implementation-dependent behavior?
To me, it smells like the result of a sloppy specification.
To me, it smells like the result of a sloppy specification.
expr3, expr4 = expr1, expr2
Although evaluation order is handled differently by different programming languages, it seems that Python is behaving logically here.[1] https://docs.python.org/3.4/reference/expressions.html#evalu...
Does it do tmp3 = expr1 tmp4 = expr2
expr3 = tmp3
expr4 = tmp4
or expr3 = expr1
expr4 = expr2
? I guess it is the latter, but the text does not make that clear.