In article <mailman.4883.1327074990.27778.python-l...@python.org>,
 Arnaud Delobelle <arno...@gmail.com> wrote:

> > So maybe doing a
> >
> > with open(filename) as f:
> >     contents = f.readlines()
> 
> That's what I do, unless I'm in an interactive session.

>From the resource management point of view, there's no doubt that's the 
right thing to be doing.  That being said, I don't bother most of the 
time and I can't think of a time when I've been bitten by it.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to