On 02/10/10 06:07 PM, Danek Duvall wrote:
Shawn Walker wrote:

A bare raise is supposed to raise active exception in the current scope
according to pydoc, but I don't know what "scope" means here.

In other words, is an exception raised in try/finally block considered to
be in-scope for the raise statement in the finally clause of that same
block?

I don't know...

Hm.  I guess that might depend on whether the call to exec_fail_actuators
raised an exception or not.  Okay, BaseException it is.  :)

Maybe the compromise is to have an except handler for the call to exec_fail_actuators that does a "raise e", but otherwise just calls raise. That would at least preserve the traceback origin for the cases where exec_fail_actuators itself doesn't fail.

--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to