On 24 June 2010 15:08, Christopher King <g.nius...@gmail.com> wrote: > so if you encounter an error that you won't handle, but you still to close > files and save data, you could use finally? >
More strongly, you *should* use finally, as there's no other way to ensure your cleanup code will run regardless of unpredictable exceptions that may be thrown... Walter
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor