[issue31778] ast.literal_eval supports non-literals in Python 3
R. David Murray
report at bugs.python.org
Wed Oct 18 07:54:54 EDT 2017
R. David Murray <rdmurray at bitdance.com> added the comment:
"Safely evaluate an expression node or a string containing a Python expression."
The behavior you are citing matches that documentation, as far as I can see. 1+1 is an expression involving supported literals.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31778>
_______________________________________
More information about the Python-bugs-list
mailing list