[Tutor] finally

Christopher King g.nius.ck at gmail.com
Thu Jun 24 04:36:45 CEST 2010


    In a try except clause, you can end with finally block. I know it runs
after the try and except blocks regardless of the outcome, but why use it.
Couldn't you just put the code after the try and except block without using
a finally block. Does the finally command do something I don't know about.
Does it make your program more understandable in some way?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100623/82a8475e/attachment.html>


More information about the Tutor mailing list