<br><br><div class="gmail_quote">On Sat, Mar 15, 2008 at 6:07 PM, Greg Ewing &lt;<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Thomas Wouters wrote:<br>
&gt; &nbsp;&gt;&gt;&gt; a, b = *c<br>
&gt; &nbsp; File &quot;&lt;stdin&gt;&quot;, line 1<br>
&gt; SyntaxError: can use starred expression only as assignment target<br>
<br>
</div>That error message isn&#39;t really accurate, since in<br>
<br>
&gt; &nbsp;&gt;&gt;&gt; a, b = (*c,)&nbsp;</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
the *c is not an assignment target.<br>
</blockquote><div><br>Dear lord, give me a chance to fix up all the details before you trip over things like that. I wrote the patch for load-context-star in half a day at pycon, I didn&#39;t bother to update the error message yet.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Also, the message implies that<br>
<br>
 &nbsp; *c = a, b<br>
<br>
should be valid -- is it?<br>
</blockquote><div><br>No, but that&#39;s not related to this patch (but rather the PEP-3132 implementation.)<br></div></div><br>-- <br>Thomas Wouters &lt;<a href="mailto:thomas@python.org">thomas@python.org</a>&gt;<br><br>
Hi! I&#39;m a .signature virus! copy me into your .signature file to help me spread!