[EMAIL PROTECTED] a écrit :
> Bruno Desthuilliers:
>> result = [line.strip() for line in f.readlines()]
> 
> Probably better, lazily:
> result = [line.strip() for line in infile]

This is of course better in the general case, but I wanted to stay 
consistant with the other examples...

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to