Issue1248

classification
Title: Trace function is not called with a line event for try statements
Type: behaviour Severity: minor
Components: Core Versions: Jython 2.5
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: akong, fwierzbicki, jha, nedbat, zyasoft
Priority: low Keywords:

Created on 2009-01-27.08:00:04 by jha, last changed 2018-03-07.19:48:34 by jeff.allen.

Files
File name Uploaded Description Edit Remove
trace_try.py jha, 2009-01-27.08:00:04
Messages
msg4083 (view) Author: (jha) Date: 2009-01-27.08:00:03
Running the attached script with Jython (r5984) prints:

>>> java -jar jython.jar /tmp/trace_try.py
<trace> call in foobar @ 7
<trace> line in foobar @ 9
foo
<trace> line in foobar @ 11
bar
<trace> return in foobar @ 11

..and CPython (2.5.1, 2.5.2, 2.6) prints:

~> python /tmp/trace_try.py
<trace> call in foobar @ 7
<trace> line in foobar @ 8
<trace> line in foobar @ 9
foo
<trace> line in foobar @ 11
bar
<trace> return in foobar @ 11
msg11442 (view) Author: Jim Baker (zyasoft) Date: 2017-06-23.16:52:15
Fix by changing the compiler to emit appropriate instrumentation.
History
Date User Action Args
2018-03-07 19:48:34jeff.allensetmilestone: Jython 2.7.2 ->
2017-07-09 16:07:24nedbatsetnosy: + nedbat
2017-06-23 16:52:16zyasoftsetnosy: + zyasoft
messages: + msg11442
milestone: Jython 2.7.2
2014-08-16 01:55:32akongsetnosy: + akong
2013-02-25 19:02:06fwierzbickisetnosy: + fwierzbicki
2013-02-25 19:01:38fwierzbickisetversions: + Jython 2.5, - 2.5.1
2009-03-14 14:48:47fwierzbickisetpriority: low
versions: + 2.5.1, - 2.5b1
2009-01-27 08:00:04jhacreate