[Python-ideas] + operator on generators

David Mertz mertz at gnosis.cx
Tue Jun 27 17:02:52 EDT 2017


On Tue, Jun 27, 2017 at 1:57 PM, Mike Miller <python-ideas at mgmiller.net>
wrote:

> I like this suggestion.  Here's another color that might be less
> controversial:
>
>     iterable3 = iterable1.chain(iterable2)
>

How do you chain it1, it2, it3, etc?

I guess `it1.chain(it2.chain(it3)))` ... but that starts to become
distinctly less readable IMO.  I'd much rather spell `chain(it1, it2, it3)`.


-- 
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170627/a1c1a780/attachment.html>


More information about the Python-ideas mailing list