use glob module
Krishna

On Fri, Dec 4, 2009 at 6:37 PM, Diez B. Roggisch <de...@nospam.web.de>wrote:

> u...@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
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to