[Python-ideas] Unpack of sequences

Carlo Pires carlopires at gmail.com
Wed Aug 29 15:50:18 CEST 2012


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?

  Carlo Pires
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120829/58565e2e/attachment.html>

More information about the Python-ideas mailing list