(slightly OT): Python and linux - very cool

D. C. Sessions dcs at lumbercartel.com
Thu Aug 8 07:25:26 CEST 2002

Emile van Sebille wrote:

> Mart van de Wege:
> [snip VM questions]
>> Constructs like the 'while (<FILEHANDLE>)' loop, which takes a  line
> from a
>> file  until EOF (meanwhile assigning it to the default variable) make
> it
>> really easy to toss of simple filter scripts.
> ??
> for line in open(r'c:\bootlog.txt'): print line

while print( read( file ) )

|      An engineer is someone who will spend three hours        |
|      figuring out how to do a two-hour job in one hour.       |

More information about the Python-list mailing list