T wrote:
> Do I need to close the file in this case?  Why or why not?
> for line in file('foo', 'r'):
>   print line

Close the file in Jython, but often it's not necessary in CPython.

Bye,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to