[docs] [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.
Python tracker <report at bugs.python.org>
More information about the docs