Multiple Assignment a = b = c
Sven R. Kunze
srkunze at mail.de
Tue Feb 16 08:10:26 EST 2016
On 16.02.2016 14:05, Sven R. Kunze wrote:
> Hi Srinivas,
> I think the tuple assignment you showed basically nails it.
> First, the rhs is evaluated.
> Second, the lhs is evaluated from left to right.
> Completely wrong?
As you mentioned swapping. The following two statements do the same (as
you suggested at the beginning).
More information about the Python-list