[issue24146] ast.literal_eval doesn't support the Python ternary operator

R. David Murray report at bugs.python.org
Fri May 8 16:25:28 CEST 2015


R. David Murray added the comment:

Right, this isn't a bug, it is that literal_eval is intended only to support *literals*, not expressions.  See also issue 22525.

----------
nosy: +r.david.murray
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24146>
_______________________________________


More information about the Python-bugs-list mailing list