summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-12-07 01:12:51 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-12-07 01:12:51 (GMT)
commitd45a46b60d2dc4616d681567d32482a1ad2c8c0c (patch)
tree6dec0e2114ae2cee43974410e8e1068cf15327e9 /Doc/library/functions.rst
parent9bcb1127f1d1305cc8071f8b4460af3b34f3ec74 (diff)
parent933142a8f238529c610edf2100c4208a8ee82805 (diff)
downloadcpython-d45a46b60d2dc4616d681567d32482a1ad2c8c0c.zip
cpython-d45a46b60d2dc4616d681567d32482a1ad2c8c0c.tar.gz
cpython-d45a46b60d2dc4616d681567d32482a1ad2c8c0c.tar.bz2
merge 3.3 (#19910)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index fb4fc7f..4371969 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -193,9 +193,9 @@ are always available. They are listed here in alphabetical order.
.. function:: compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1)
Compile the *source* into a code or AST object. Code objects can be executed
- by :func:`exec` or :func:`eval`. *source* can either be a string or an AST
- object. Refer to the :mod:`ast` module documentation for information on how
- to work with AST objects.
+ by :func:`exec` or :func:`eval`. *source* can either be a normal string, a
+ byte string, or an AST object. Refer to the :mod:`ast` module documentation
+ for information on how to work with AST objects.
The *filename* argument should give the file from which the code was read;
pass some recognizable value if it wasn't read from a file (``'<string>'`` is