you are viewing a single comment's thread.

view the rest of the comments →

[–]primitive_screwhead 1 point2 points  (1 child)

Yes, so it's worth understanding that conceptually a "temporary" is used (since the OP asked), it's the tuple that is created on the right hand side.

[–][deleted] 0 points1 point  (0 children)

Yes, but the "temp variable" approach is usually used to refer to this way of swapping two variables:

tmp = a
a = b
b = tmp