f = open(filename) try: statements finally: f.close()
try: statements except IOError,e: statements else: statements