[issue21414] Add an intersperse function to itertools

Éric Araujo report at bugs.python.org
Fri May 2 19:29:32 CEST 2014


Éric Araujo added the comment:

I looked for a previous discussion of this on the Python mailing lists and found nothing.

Existing solutions include https://twitter.com/snim2/status/393821419114483712 and http://stackoverflow.com/questions/5655708/python-most-elegant-way-to-intersperse-a-list-with-an-element

Raymond is the one to decide whether this should be added.  If he doesn't comment in the near future, feel free to propose this on python-ideas to see if people like it.  You may also want to ask maintainers of projects like more-itertools if they have a similar function and if people use it.

----------
nosy: +eric.araujo, rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21414>
_______________________________________


More information about the Python-bugs-list mailing list