extract substring by regex from a text file

Alessio alessio.dl at gmail.com
Sat Apr 17 18:14:10 CEST 2010


On Apr 17, 11:05 am, Peter Otten <__pete... at web.de> wrote:
>
> Just in case you didn't know:
>
>     for line in instream:
>         ...
>
> looks better, uses less memory, and may be a tad faster than
>
>     for line in instream.readlines():
>         ...
>
> Peter

Thanks for your suggestions, they are welcome... I'm at the beginning
with python.
I just changed my script to parse the file without readlines()




More information about the Python-list mailing list