<div class="gmail_quote">On 21 December 2011 15:48, Neal Becker <span dir="ltr"><<a href="mailto:ndbecker2@gmail.com">ndbecker2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Clarification: where can packing/unpacking syntax be used?<br>
<br>
It would be great if it were valid essentially anywhere (not limited to<br>
parameter passing).<br>
<br>
What about constructs like:<br>
<br>
a, @tuple tail, b = sequence?</blockquote><div><br></div><div><div>>>> a, *b, c = range(10)</div><div>>>> a, b, c</div><div>(0, [1, 2, 3, 4, 5, 6, 7, 8], 9)</div></div><div><br></div><div>It's just a proposed syntax change, effectively, so yes. However, <a href="http://bugs.python.org/issue2292">http://bugs.python.org/issue2292</a> covers the ones we don't have (that we should :P). This discussion doesn't cover that.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br>