simple iterator question

Sion Arrowsmith sion at viridian.paintbox
Thu Apr 2 16:15:10 CEST 2009


Neal Becker  <ndbecker2 at gmail.com> wrote:
>How do I interleave 2 sequences into a single sequence?
>
>How do I interleave N sequences into a single sequence?

itertools.chain(*itertools.izip(*Nsequences))


-- 
\S

   under construction




More information about the Python-list mailing list