Can't see the forest for the trees - when reading file, only processing first line

News arobert at townisp.com
Thu Apr 13 14:04:16 EDT 2006


matt at vazor.com wrote:
> Suggest keeping it simple:
> 
> def use_file():
>   return open(options.filename).readlines()
> 
> m
> 

Very cool..

Didn't know you could do that.






More information about the Python-list mailing list