New submission from Xavier de Gaye: Also, the two oldest frames of the stack are identical (sic), according to the printed traceback.
$ python3 foo.py > /tmp/foo.py(3)<module>() -> x = 1 (Pdb) import sys; print(sys.version) 3.2.2 (default, Dec 27 2011, 17:35:55) [GCC 4.3.2] (Pdb) list 1 import pdb 2 pdb.set_trace() 3 -> x = 1 4 [EOF] (Pdb) quit Traceback (most recent call last): File "foo.py", line 3, in <module> x = 1 File "foo.py", line 3, in <module> x = 1 File "/usr/local/lib/python3.2/bdb.py", line 46, in trace_dispatch return self.dispatch_line(frame) File "/usr/local/lib/python3.2/bdb.py", line 65, in dispatch_line if self.quitting: raise BdbQuit bdb.BdbQuit $ ---------- components: Library (Lib) messages: 175205 nosy: xdegaye priority: normal severity: normal status: open title: pdb raises BdbQuit on 'quit' when started with set_trace type: behavior versions: Python 2.7, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16446> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com