Just checked to see how Ruby deals with this. Both languages allow one
to register a trace functon to catch "events" like call, line, return,
exception, etc. Ruby however register an event before the raise takes
place.

It might be cool for some good person to go through the process of
making a formal suggestion this get added, etc.  (unless a change like
this is already in the works).

"Diez B. Roggisch" <[EMAIL PROTECTED]> writes:

> raise is a statement, not a function. So it won't work.
> 
> I do know that e.g. nose allows for dropping into pdb when a test
> fails. Maybe that works by catching the exception top-level, examining
> the stack-trace, setting a break-point, and restarting it.
> 
> Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to