"Erik Max Francis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Note quite. The assignment of the resources to its variable needs to be > done before the try: > > f = open(file) > try: > contents = f.read() > finally: > f.close() > Pardon the newbie question, but could you explain why? I have been doing it the same way as the OP and would like to know the difference. Thank you. Louis
-- http://mail.python.org/mailman/listinfo/python-list