[Python-ideas] + operator on generators

Danilo J. S. Bellini danilo.bellini at gmail.com
Sun Jun 25 14:55:00 EDT 2017


On Sun, Jun 25, 2017 at 3:06 PM, lucas via Python-ideas <
python-ideas at python.org> wrote:

> I often use generators, and itertools.chain on them.
> What about providing something like the following:
>
>     a = (n for n in range(2))
>     b = (n for n in range(2, 4))
>     tuple(a + b)  # -> 0 1 2 3


AudioLazy does that: https://github.com/danilobellini/audiolazy

-- 
Danilo J. S. Bellini
---------------
"*It is not our business to set up prohibitions, but to arrive at
conventions.*" (R. Carnap)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170625/0bdce37a/attachment.html>


More information about the Python-ideas mailing list