Giuseppe Ottaviano wrote:

> def ichain(seq):
>         for s in seq:
>                 for x in s: yield x
> 
> (which is often useful and I don't think it has been included in  
> itertools) you can iterate lazily on the file:

Python 2.6 includes itertools.chain.from_iterable() with that functionality.

Peter
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to