[issue40403] pdb does not drop into debugger upon SyntaxError caused by ast.literal_eval

Xavier de Gaye report at bugs.python.org
Tue Jun 2 03:28:38 EDT 2020


Xavier de Gaye <xdegaye at gmail.com> added the comment:

In Kerrick's example ast.literal_eval('') could be ast.literal_eval(some_code) instead where some_code is a string containing dynamically generated Python code. pdb post-mortem debugging must allow finding the syntax error in this code. The patch proposed in issue 16180 by Terry may fix this problem (and issue 16180).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40403>
_______________________________________


More information about the Python-bugs-list mailing list