I normally didn't bother too much when reading from files, and for example I always did a
content = open(filename).readlines()But now I have the doubt that it's not a good idea, does the file handler stays
open until the interpreter quits?
So maybe doing a
with open(filename) as f:
contents = f.readlines()
is always a better idea??
--
http://mail.python.org/mailman/listinfo/python-list
