serial iteration over several lists

Martin DeMello martindemello at yahoo.com
Sun Aug 22 10:38:23 EDT 2004


Brandon <bmbeck at gmail.com> wrote:
> How about this:
> 
> >>> import itertools
> >>> def mesh_flatten(meshes):
> ...     return itertools.chain(*meshes)
[...]

Thanks - that looks like an excellent starting point. Has there been any
work done on bidirectional iterators?

martin



More information about the Python-list mailing list