No need to close file?

T ty.2006 at yahoo.com
Tue Jul 18 15:50:14 EDT 2006


Do I need to close the file in this case?  Why or why not?

for line in file('foo', 'r'):
  print line




More information about the Python-list mailing list