diff options
author | Fred Drake <fdrake@acm.org> | 1999-01-27 15:48:23 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-01-27 15:48:23 (GMT) |
commit | da452bf6a7b2063b50ba608ebbef3341f1a7109d (patch) | |
tree | 7acac766b4ac4002bde4ac665094f9c835e0c3f5 /Doc | |
parent | 5763e07ea37d7e8c520d4fb4d0fc19961bf114e0 (diff) | |
download | cpython-da452bf6a7b2063b50ba608ebbef3341f1a7109d.zip cpython-da452bf6a7b2063b50ba608ebbef3341f1a7109d.tar.gz cpython-da452bf6a7b2063b50ba608ebbef3341f1a7109d.tar.bz2 |
Don't say that the module defines the "following functions" and then
only describe one; say "following function" instead!
Merge the two one-sentence paragraphs into a single paragraph, so it
doesn't look too stupid.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libcode.tex | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Doc/lib/libcode.tex b/Doc/lib/libcode.tex index ab80fc1..877b7a4 100644 --- a/Doc/lib/libcode.tex +++ b/Doc/lib/libcode.tex @@ -6,9 +6,7 @@ The \code{code} module defines operations pertaining to Python code -objects. - -The \code{code} module defines the following functions: +objects. It defines the following function: \begin{funcdesc}{compile_command}{source, \optional{filename\optional{, symbol}}} @@ -21,14 +19,12 @@ the same decision as the real interpreter main loop. Arguments: \var{source} is the source string; \var{filename} is the optional filename from which source was read, defaulting to -\code{"<input>"}; and \var{symbol} is the optional grammar start -symbol, which should be either \code{"single"} (the default) or -\code{"eval"}. +\code{'<input>'}; and \var{symbol} is the optional grammar start +symbol, which should be either \code{'single'} (the default) or +\code{'eval'}. Return a code object (the same as \code{compile(\var{source}, \var{filename}, \var{symbol})}) if the command is complete and valid; return \code{None} if the command is incomplete; raise -\code{SyntaxError} if the command is a syntax error. - - +\exception{SyntaxError} if the command is a syntax error. \end{funcdesc} |