Message122
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:
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:16:41 | admin | link | issue222838 messages |
| 2008-02-20 17:16:41 | admin | create | |
|