[Python-ideas] Unpack of sequences
masklinn at masklinn.net
Wed Aug 29 15:54:39 CEST 2012
On 29 août 2012, at 15:50, Carlo Pires <carlopires at gmail.com> wrote:
> I was just wondering why unpack of sequences did not follow same behavior of functions parameters. I mean:
> first, *rest = 'a b c'.split()
> should work in python, why doesn't it?
It does work in python 3, and following p3's improved unpacking semantics.
More information about the Python-ideas