[Python-checkins] r82848 - python/branches/py3k/Doc/library/ast.rst

georg.brandl python-checkins at python.org
Tue Jul 13 08:38:10 CEST 2010


Author: georg.brandl
Date: Tue Jul 13 08:38:10 2010
New Revision: 82848

Log:
Add bytes in literal_eval doc.

Modified:
   python/branches/py3k/Doc/library/ast.rst

Modified: python/branches/py3k/Doc/library/ast.rst
==============================================================================
--- python/branches/py3k/Doc/library/ast.rst	(original)
+++ python/branches/py3k/Doc/library/ast.rst	Tue Jul 13 08:38:10 2010
@@ -119,14 +119,14 @@
 
    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, sets,
-   booleans, and ``None``.
+   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.
 
    .. versionchanged:: 3.2
-      Now allows set literals.
+      Now allows bytes and set literals.
 
 
 .. function:: get_docstring(node, clean=True)


More information about the Python-checkins mailing list