<div class="gmail_quote">On Wed, Oct 13, 2010 at 3:53 PM, Ethan Furman <span dir="ltr"><<a href="mailto:ethan@stoneleaf.us">ethan@stoneleaf.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Ian Kelly wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
 here is an example<br>
where the order of assignment actually matters:<br>
<br>
 >>> d['a'] = d = {}<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
NameError: name 'd' is not defined<br>
 >>> d = d['a'] = {}<br>
 >>> d<br>
{'a': {...}}<br>
<br>
As you can see, they're assigned left-to-right.<br>
</blockquote>
<br>
<Flash of inspiration><br>
<br>
Ah!  I was thinking the assignments went in a filter fashion, but now what I think is happening is that the first item is bound to the last, then the next item is bound to the last, etc, etc.<br>
<br>
Is this correct?<br></blockquote></div><br>Exactly.<br><br>Cheers,<br>Ian<br>