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 <rep...@bugs.python.org> <http://bugs.python.org/issue17191> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com