Cannot import a module from a variable

Fredrik Lundh fredrik at pythonware.com
Thu Oct 19 02:45:34 EDT 2006


Cameron Walsh wrote:

> Woah, that actually works?  Having the "finally" after the "return"?
> That could make some things easier, and some things harder...

The whole point of having a clean-up handler is to make sure it runs no 
matter what:

    When a return, break or continue statement is executed in the
    try suite of a try-finally statement, the finally clause is also
    executed "on the way out".

    http://pyref.infogami.com/try

</F>




More information about the Python-list mailing list