<br><br><div class="gmail_quote">On Sat, Mar 15, 2008 at 11:26 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;<br>
&gt; 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><br>
</div><div class="Ih2E3d">&gt; &lt;mailto:<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;&gt;&gt;&gt;*a, b, c = a, b, *c<br>
&gt;<br>
&gt; &nbsp; &nbsp; +0 on allowing * in other than the last position.<br>
&gt;<br>
&gt; The left-hand side of all this is already in. Only the rhs is new.<br>
<br>
</div>I&#39;m worried that allowing things like<br>
<br>
 &nbsp; x = a, b, *c, d, *e, f<br>
<br>
is going to make people want to do this in a function<br>
call as well. Does your patch permit that, or only<br>
when constructing a tuple?<br>
<div><div></div><div class="Wj3C7c"></div></div></blockquote><div><br>The patch does not, yet. Guido did ask that it would work. (To be precise, he asked for &#39;f(*a, b, c)&#39; to be valid, but it only makes sense to allow, say, &#39;f(*a, b, *c)&#39; too, and he hasn&#39;t said &#39;no&#39; to that.) However, the grammar for functiondefinitions and -calls is entirely separate from the other unpacking contexts, and modifying the grammer is hard; I&#39;m not done with it yet.<br>
<br></div></div>-- <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!