[Python-checkins] cpython (3.2): Add missing types to docstring of ast.literal_eval.

eric.araujo python-checkins at python.org
Wed Apr 27 16:38:04 CEST 2011


http://hg.python.org/cpython/rev/281c090ad3b9
changeset:   69605:281c090ad3b9
branch:      3.2
user:        Éric Araujo <merwok at netwok.org>
date:        Sun Apr 17 19:10:27 2011 +0200
summary:
  Add missing types to docstring of ast.literal_eval.

The reST doc was updated but not the docstring.

files:
  Lib/ast.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/ast.py b/Lib/ast.py
--- a/Lib/ast.py
+++ b/Lib/ast.py
@@ -40,8 +40,8 @@
     """
     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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list