packing unpacking depends on order.

Sven R. Kunze srkunze at mail.de
Fri Sep 4 10:25:12 EDT 2015


On 04.09.2015 05:36, random832 at fastmail.us wrote:
> You haven't demonstrated that the RHS is affected by anything. The 
> sample code in the original post of this thread behaves identically if 
> the RHS is a simple tuple of (2, 1) [or (1, 2)] respectively. If you 
> have another sample that shows different behavior please post it. 

You are right. I was reconstructing the example and see what exactly 
happened here. Not sure what made me think the assignment would be 
broken up into its parts. That's definitely not the case.

So, everything is fine. Side-effects happening on either side are 
unavoidable.

Best,
Sven



More information about the Python-list mailing list