Issue452526

classification
Title: traceback lineno is the except line
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn
Priority: normal Keywords:

Created on 2001-08-18.15:01:02 by bckfnn, last changed 2001-08-19.15:20:43 by bckfnn.

Messages
msg394 (view) Author: Finn Bock (bckfnn) Date: 2001-08-18.15:01:02
I have this code:
def test():
    print noname

try:
    print "line 5"
    print "line 6"
    test()
    print "line 8"
    print "line 9"
except ValueError:
    print "shouldn't happen."

When I run it under python I get the following stack 
trace:
line 5
line 6
Traceback (innermost last):
  File "test.py", line 7, in ?
    test()
  File "test.py", line 2, in test
    print noname
NameError: noname

Under Jython I get:
line 5
line 6
Traceback (innermost last):
  File "test.py", line 10, in ?
  File "test.py", line 2, in test
NameError: noname

Reported by chuck clark on 2001-08-09 on jython-users.
msg395 (view) Author: Finn Bock (bckfnn) Date: 2001-08-19.15:09:55
Logged In: YES 
user_id=4201

Added as test320.
msg396 (view) Author: Finn Bock (bckfnn) Date: 2001-08-19.15:20:43
Logged In: YES 
user_id=4201

Fixed in CodeCompiler.java: 2.19;
History
Date User Action Args
2001-08-18 15:01:02bckfnncreate