Message122

Author bckfnn
Recipients
Date 2000-11-18.19:25:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Wrong line number reported in stacktrace when using try ... finally.  The line
number reported is the last statement in the try: clause:, not the line with the
call to foo(). This makes debugging a little bit more diffecult.


--------------------- FILE: test179.py --------------------- 

def foo():
   assert 0

try:
   foo()
finally:
   pass

--------------------- END --------------------- 



d:\java\jpython\test>python test179.py
Traceback (innermost last):
  File "test179.py", line 6, in ?
    foo()
  File "test179.py", line 3, in foo
    assert 0
AssertionError



d:\java\jpython\test>jpython test179.py
Traceback (innermost last):
  File "test179.py", line 8, in ?
  File "test179.py", line 3, in foo
AssertionError:

History
Date User Action Args
2008-02-20 17:16:41adminlinkissue222838 messages
2008-02-20 17:16:41admincreate