On Wed, Dec 9, 2020 at 11:08 AM Evpok Padding <evpok.padd...@gmail.com> wrote:
> Hey, > > You can always do `itertools.chain.from_iterable(zip(iterable, > itertools.repeat(sep)))` but I agree that it is verbose. > > Cheers, > > E > Worth noting that implementation puts a terminal sep on the end of the result, which isn't what OP seems to want. --- Ricky. "I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler
_______________________________________________ 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/MA6KPTFBVIE47U3CKUZ3R4767ZO3LKQF/ Code of Conduct: http://python.org/psf/codeofconduct/