[issue32888] Improve exception message in ast.literal_eval

Chris Angelico report at bugs.python.org
Tue Feb 20 12:26:21 EST 2018


New submission from Chris Angelico <rosuav at gmail.com>:

When a non-literal is given to literal_eval, attempt to be more
helpful with the message, rather than calling it 'malformed'.

----------
components: Library (Lib)
messages: 312423
nosy: Rosuav
priority: normal
pull_requests: 5555
severity: normal
status: open
title: Improve exception message in ast.literal_eval
versions: Python 3.8

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


More information about the Python-bugs-list mailing list