I agree that itertools shouldn't be a collection of vaguely useful functions. I proposed that one because I have needed this one many times, often used str.join instead which comes at a greater cost than iterating pieces of string.
I didn't know about more-itertools library (which already has an interleave function that does something different), I guess it makes more sense there. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/OADW4ZGK5EWXDMRQXIVAEN5B7WVJ3WGJ/ Code of Conduct: http://python.org/psf/codeofconduct/