Staging
v0.8.1
https://github.com/python/cpython
Revision 4327705cfab3eb09073ec828570bbd8f789e1611 authored by Daniel Hahler on 15 February 2019, 20:52:53 UTC, committed by Miss Islington (bot) on 15 February 2019, 20:52:53 UTC


Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt.

This patch fixes this by pre-compiling the code before passing it to `Pdb.run`.


https://bugs.python.org/issue35931
1 parent 9abb725
History
Tip revision: 4327705cfab3eb09073ec828570bbd8f789e1611 authored by Daniel Hahler on 15 February 2019, 20:52:53 UTC
bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)
Tip revision: 4327705
File Mode Size
Grammar -rw-r--r-- 7.4 KB
Tokens -rw-r--r-- 1.5 KB

back to top