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 <g.nius...@gmail.com>wrote: > let me try it > > On Thu, Jun 24, 2010 at 9:38 AM, Hugo Arts <hugo.yo...@gmail.com> wrote: > >> On Thu, Jun 24, 2010 at 3:13 PM, Christopher King <g.nius...@gmail.com> >> 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 - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor