Manyfile Processing

Diez B. Roggisch deets at nospam.web.de
Fri Dec 4 04:37:19 EST 2009


user at domain.invalid schrieb:
> Hey,
> 
>  sorry if i bother you with a beginners question but i have an issue
> with processing a bunch of files. They are some arithmetic lists the
> processing of one file is an easy task but how do i process many files?
> I tried reading that files in to a list and looping over the list
> elements but the function won't accept any arguments other than a string.
> 
> I would appreciate if you could help me.

for filename in list_of_filenames:
     do_something_with_one_file(filename)

Unless you disclose more of what your actual code looks like, there 
isn't more we can do.

Diez



More information about the Python-list mailing list