Jorge Godoy wrote: > "Roger Rohrbach" <[EMAIL PROTECTED]> writes: > > > Now (and this may be slight OT): can someone please explain to a > > relative Python neophyte how it works?? > > How what works? The try-except block? http://docs.python.org/tut/node10.html > > > I cannot grasp how the second statement in the try block can possibly > > be executed, given that the first statement raises an exception.
I believe what he's asking here is clarification on this from the python documentation linked above: "If an exception occurs during execution of the try clause, the rest of the clause is skipped. Then if its type matches the exception named after the except keyword, the except clause is executed, and then execution continues after the try statement." How in his example with the hub.commit() occuring after the statement that throws an execption can the hub.commit() make a difference in the code? The very fact that the call to MyClass throws and exception means that hub.commit() should never be reached unless there is something I'm missing or some magic in SQLObject. Dan -- Software Developer Wild Brain, Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

