[New-bugs-announce] [issue17191] pdb list shows unexpected code when stack frame includes a try / finally block
Abram Clark
report at bugs.python.org
Tue Feb 12 11:47:37 CET 2013
New submission from Abram Clark:
The list command in pdb shows an unexpected portion of code after an up command enters a try / finally block in the call stack.
To reproduce:
pdb pdb_list_bug_reproduce.py
c
up
list
Expected behavior: Show 11 lines around line 8, "throw_something()", which was the entry point to the lower stack frame.
Actual behavior: Shows code centered around line 10, in the finally block, which is likely cleanup code that has nothing to do with the exception thrown.
----------
files: pdb_list_bug_reproduce.py
messages: 181951
nosy: Abram.Clark
priority: normal
severity: normal
status: open
title: pdb list shows unexpected code when stack frame includes a try / finally block
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file29047/pdb_list_bug_reproduce.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17191>
_______________________________________
More information about the New-bugs-announce
mailing list