In <[EMAIL PROTECTED]>, Julio Biason wrote: > If I use a file() in a for, how to I explicitely close the file? > > <code> > for line in file('contents'): > print line > </code> > > Would this work like the new 'with' statement or it will only be closed > when the GC finds it?
Only when the GC destroys it. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list