so if you encounter an error that you won't handle, but you still to close files and save data, you could use finally?
On Thu, Jun 24, 2010 at 10:05 AM, Christopher King <[email protected]>wrote: > let me try it > > On Thu, Jun 24, 2010 at 9:38 AM, Hugo Arts <[email protected]> wrote: > >> On Thu, Jun 24, 2010 at 3:13 PM, Christopher King <[email protected]> >> wrote: >> > i mean isn't handled >> > >> >> When I said "guaranteed to run," I meant it. finally will *always* run >> after your try clause, exceptions or not, handled or not. >> And by manual, he means the python reference manual. He was quoting a >> part covering the try statement: >> >> http://docs.python.org/reference/compound_stmts.html#the-try-statement >> >> Hugo >> > >
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
