summaryrefslogtreecommitdiffstats
path: root/Doc/library/code.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/code.rst')
-rw-r--r--Doc/library/code.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/code.rst b/Doc/library/code.rst
index 6708079..538e5af 100644
--- a/Doc/library/code.rst
+++ b/Doc/library/code.rst
@@ -56,8 +56,8 @@ build applications which provide an interactive interpreter prompt.
*source* is the source string; *filename* is the optional filename from which
source was read, defaulting to ``'<input>'``; and *symbol* is the optional
- grammar start symbol, which should be either ``'single'`` (the default) or
- ``'eval'``.
+ grammar start symbol, which should be ``'single'`` (the default), ``'eval'``
+ or ``'exec'``.
Returns a code object (the same as ``compile(source, filename, symbol)``) if the
command is complete and valid; ``None`` if the command is incomplete; raises