diff options
author | Éric Araujo <merwok@netwok.org> | 2011-04-17 17:10:27 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-04-17 17:10:27 (GMT) |
commit | 2a83cc61d6bd96dc05008039703827ec0438cf9c (patch) | |
tree | 189666ce5d94cab48ab118b772f423f706484860 /Lib | |
parent | e7d36fe0a6118a055b407f0651fed3cefc01e9b1 (diff) | |
download | cpython-2a83cc61d6bd96dc05008039703827ec0438cf9c.zip cpython-2a83cc61d6bd96dc05008039703827ec0438cf9c.tar.gz cpython-2a83cc61d6bd96dc05008039703827ec0438cf9c.tar.bz2 |
Add missing types to docstring of ast.literal_eval.
The reST doc was updated but not the docstring.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ast.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |