[Python-3000] PEP 3132: Extended Iterable Unpacking
steven.bethard at gmail.com
Fri May 4 17:54:40 CEST 2007
On 5/3/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Steven Bethard wrote:
> > This brings up the question of why the patch produces lists, not
> > tuples. What's the reasoning behind that?
> When dealing with an iterator, you don't know the
> length in advance, so the only way to get a tuple
> would be to produce a list first and then create
> a tuple from it.
Yep. That was one of the reasons it was suggested that the *args
should only appear at the end of the tuple unpacking.
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
--- Bucky Katt, Get Fuzzy
More information about the Python-3000