Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96023

Re: packing unpacking depends on order.

Date 2015-09-04 16:25 +0200
From "Sven R. Kunze" <srkunze@mail.de>
Subject Re: packing unpacking depends on order.
References (1 earlier) <CAGuvt90dWASEjj=_GiZb4jqV4CDF+qqFLH4VS5m_qhUMx6jbJg@mail.gmail.com> <55E73159.4050508@mail.de> <1441243045.413788.373350650.5DF79DE2@webmail.messagingengine.com> <55E8D6D4.20209@mail.de> <1441337800.230412.374445465.16C12305@webmail.messagingengine.com>
Newsgroups comp.lang.python
Message-ID <mailman.138.1441376718.8327.python-list@python.org> (permalink)

Show all headers | View raw


On 04.09.2015 05:36, random832@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: packing unpacking depends on order. "Sven R. Kunze" <srkunze@mail.de> - 2015-09-04 16:25 +0200

csiph-web