[Python-ideas] iterable.__unpack__ method

Bruce Leban bruce at leapyear.org
Sun Feb 24 09:04:57 CET 2013


On Sat, Feb 23, 2013 at 10:24 PM, Guido van Rossum <guido at python.org> wrote:

> But is that really so much better than
>
>   command = next(iterargs)
>   # etc.
>
> ?
>
> And to me the ... Looks too much like something that consumes the rest,
> rather than leaving it.
>
> --Guido (not on a real keyboard)
>

And hypothetically

a, b, c = next(iterargs, count=3)

or

a, b, c = (next * 3)(iterargs)

--- Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130224/358835a1/attachment.html>


More information about the Python-ideas mailing list