pythonian way

Milos Prudek prudek at nembv.cz
Fri Feb 25 03:49:15 EST 2000


> if all you want is to load all lines from the file
> into a list, use:
> 
>     A = H.readlines()

Yeah, but I need to remove empty lines as well...

> the standard pydiom for reading from a text file
> is this:

It's useful. Thanks!

--
Milos Prudek



More information about the Python-list mailing list