itertools, functools, file enhancement ideas

Paul Rubin http
Sat Apr 7 17:56:23 EDT 2007


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
>       # loop through all the files crunching all lines in each one
>       for line in (ichain(file_lines(x) for x in all_filenames)):
>          crunch(x)

supposed to say crunch(line) of course.



More information about the Python-list mailing list