diff -r 4f3ce83eff17 Doc/library/ast.rst --- a/Doc/library/ast.rst Tue Sep 30 13:40:12 2014 +0200 +++ b/Doc/library/ast.rst Tue Sep 30 19:44:14 2014 +0200 @@ -115,13 +115,15 @@ and classes for traversing abstract synt .. function:: literal_eval(node_or_string) - Safely evaluate an expression node or a string containing a Python - expression. The string or node provided may only consist of the following - Python literal structures: strings, bytes, numbers, tuples, lists, dicts, - sets, booleans, and ``None``. + Safely evaluate an expression node or a string containing a Python literal or + container display. The string or node provided may only consist of the + following Python literal structures: strings, bytes, numbers, tuples, lists, + dicts, sets, booleans, and ``None``. - This can be used for safely evaluating strings containing Python expressions - from untrusted sources without the need to parse the values oneself. + This can be used for safely evaluating strings containing Python values from + untrusted sources without the need to parse the values oneself. It is not + capable of evaluating arbitrarily complex expressions, for example involving + operators or indexing. .. versionchanged:: 3.2 Now allows bytes and set literals.