Message4084

Author jha
Recipients jha
Date 2009-01-27.08:11:15
SpamBayes Score 1.7837253e-07
Marked as misclassified No
Message-id <1233043880.25.0.700793314208.issue1249@psf.upfronthosting.co.za>
In-reply-to
Content
Running the attached script with Jython (r5984) produces:

~> java -jar jython.jar /tmp/trace_exc.py
<trace> call in bar @ 13
<trace> line in bar @ 14
<trace> call in foo @ 7
<trace> line in foo @ 9
<trace> line in foo @ 11
<trace> exception in foo @ 11
<trace> exception in bar @ 14

..and running with CPython (2.5.1, 2.5.2, 2.6) produces:

 ~> python /tmp/trace_exc.py
<trace> call in bar @ 13
<trace> line in bar @ 14
<trace> call in foo @ 7
<trace> line in foo @ 8
<trace> line in foo @ 9
<trace> exception in foo @ 9
<trace> line in foo @ 11
<trace> return in foo @ 11
<trace> exception in bar @ 14
<trace> return in bar @ 14

Jython calls the trace function with an exception event at the end of
the finally block when the exception is reraised and the frame is
exited. CPython reports the event when the exception occurs.
History
Date User Action Args
2009-01-27 08:11:21jhasetrecipients: + jha
2009-01-27 08:11:20jhasetmessageid: <1233043880.25.0.700793314208.issue1249@psf.upfronthosting.co.za>
2009-01-27 08:11:18jhalinkissue1249 messages
2009-01-27 08:11:16jhacreate