[Tutor] Parsing data from a set of files iteratively

Spyros Charonis s.charonis at gmail.com
Fri May 18 20:23:23 CEST 2012


Dear Python community,

I have a set of ~500 files which I would like to run a script on. My script
extracts certain information and
generates several lists with items I need. For one of these lists, I need
to combine the information from all
500 files into one super-list. Is there a way in which I can iteratively
execute my script over all 500 files
and get them to write the list I need into a new file? Many thanks in
advance for your time.

Spyros
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120518/40cde48d/attachment.html>


More information about the Tutor mailing list