Add missing types to docstring of ast.literal_eval.
authorÉric Araujo <merwok@netwok.org>
Sun, 17 Apr 2011 17:10:27 +0000 (19:10 +0200)
committerÉric Araujo <merwok@netwok.org>
Sun, 17 Apr 2011 17:10:27 +0000 (19:10 +0200)
The reST doc was updated but not the docstring.

Lib/ast.py

index 72237ed90856332a0c8226335e7fe83b2d113791..fb5adac8fd9ae8b6a990797fbf20e2647e5456ea 100644 (file)
@@ -40,8 +40,8 @@ def 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, numbers, tuples, lists, dicts, booleans,
-    and None.
+    Python literal structures: strings, bytes, numbers, tuples, lists, dicts,
+    sets, booleans, and None.
     """
     _safe_names = {'None': None, 'True': True, 'False': False}
     if isinstance(node_or_string, str):