[Python-ideas] + operator on generators

Mike Miller python-ideas at mgmiller.net
Tue Jun 27 17:10:49 EDT 2017


On 2017-06-27 14:02, David Mertz wrote:
>          iterable3 = iterable1.chain(iterable2)
> 
> 
> How do you chain it1, it2, it3, etc?

Why not:

     iterable5 = iterable1.chain(iterable2, iterable3, iterable4)

?  i.e. Couldn't a class method do this with itertools.chain() under the hood?


More information about the Python-ideas mailing list