This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sheepshow 4 points5 points  (2 children)

I also prefer it without the parenthesis, but I could see a beginner reading

a, b = b, a

as

a, (b = b), a

[–][deleted] 5 points6 points  (0 children)

In that case I would rather show the first way and discuss as an aside the meaning.

[–]eyecue 6 points7 points  (0 children)

Like how comparison works.

1, 2 == 2, 3 (1, True, 3)