On 21 December 2011 15:48, Neal Becker <ndbeck...@gmail.com> wrote:

> Clarification: where can packing/unpacking syntax be used?
>
> It would be great if it were valid essentially anywhere (not limited to
> parameter passing).
>
> What about constructs like:
>
> a, @tuple tail, b = sequence?


>>> a, *b, c = range(10)
>>> a, b, c
(0, [1, 2, 3, 4, 5, 6, 7, 8], 9)

It's just a proposed syntax change, effectively, so yes. However,
http://bugs.python.org/issue2292 covers the ones we don't have (that we
should :P). This discussion doesn't cover that.


> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to