On 2017-06-25 20:23, Steven D'Aprano wrote:
> I have a counter-proposal: introduce the iterator chaining operator "&":
>
>      iterable & iterable --> itertools.chain(iterable, iterable)
>

I like this suggestion.  Here's another color that might be less controversial:

    iterable3 = iterable1.chain(iterable2)


Perhaps more obvious than &, easier to use than "from itertools import 
chain...".

-Mike
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to