diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-04-24 00:39:43 (GMT) |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-04-24 00:39:43 (GMT) |
| commit | cae1be85f5ac78a7ec73d129ca46cdfc5c5a5ad9 (patch) | |
| tree | 786ea49a8c479b6cc89f6801925bcadd3786c9b5 /Lib/ast.py | |
| parent | 5569e9b1507ac0ff18fec433a7733a0185dde7b0 (diff) | |
| parent | 37e6c54ba122703a0162dd44cf3eac78c46c8bdd (diff) | |
| download | cpython-cae1be85f5ac78a7ec73d129ca46cdfc5c5a5ad9.zip cpython-cae1be85f5ac78a7ec73d129ca46cdfc5c5a5ad9.tar.gz cpython-cae1be85f5ac78a7ec73d129ca46cdfc5c5a5ad9.tar.bz2 | |
Branch merge
Diffstat (limited to 'Lib/ast.py')
| -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): |
