Python 3000 idea -- + on iterables -> itertools.chain
Carl Banks
pavlovevidence at gmail.com
Mon Nov 13 05:59:57 EST 2006
Georg Brandl wrote:
> What has a better chance of success in my eyes is an extension to yield
> all items from an iterable without using an explicit for loop: instead of
>
> for item in iterable:
> yield item
>
> you could write
>
> yield from iterable
>
> or
>
> yield *iterable
Since this is nothing but an alternate way to spell a very specific
(and not-too-common) for loop, I expect this has zero chance of
success.
Carl Banks
More information about the Python-list
mailing list