Manyfile Processing

km srikrishnamohan at gmail.com
Fri Dec 4 08:04:59 EST 2009


use glob module
Krishna

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

> 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
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091204/fd0f47f2/attachment-0001.html>


More information about the Python-list mailing list