diff options
author | Fred Drake <fdrake@acm.org> | 1998-05-14 19:37:06 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-05-14 19:37:06 (GMT) |
commit | 5c07d9b028898792b19b3845786d6565d11c4aba (patch) | |
tree | 9bdc8fdeca1a698d62912ab15feb70452ddcfdb5 /Doc/ref/ref8.tex | |
parent | 2094e044c78fa2df7143d4edb5ddf35ce49bdd95 (diff) | |
download | cpython-5c07d9b028898792b19b3845786d6565d11c4aba.zip cpython-5c07d9b028898792b19b3845786d6565d11c4aba.tar.gz cpython-5c07d9b028898792b19b3845786d6565d11c4aba.tar.bz2 |
Updated markup style (got rid of \verb@...@, mostly).
Diffstat (limited to 'Doc/ref/ref8.tex')
-rw-r--r-- | Doc/ref/ref8.tex | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Doc/ref/ref8.tex b/Doc/ref/ref8.tex index a678f9f..25789a0 100644 --- a/Doc/ref/ref8.tex +++ b/Doc/ref/ref8.tex @@ -13,9 +13,9 @@ While a language specification need not prescribe how the language interpreter is invoked, it is useful to have a notion of a complete Python program. A complete Python program is executed in a minimally initialized environment: all built-in and standard modules are -available, but none have been initialized, except for \verb@sys@ -(various system services), \verb@__builtin__@ (built-in functions, -exceptions and \verb@None@) and \verb@__main__@. The latter is used +available, but none have been initialized, except for \module{sys} +(various system services), \module{__builtin__} (built-in functions, +exceptions and \code{None}) and \module{__main__}. The latter is used to provide the local and global name space for execution of the complete program. \refbimodindex{sys} @@ -29,7 +29,7 @@ The interpreter may also be invoked in interactive mode; in this case, it does not read and execute a complete program but reads and executes one statement (possibly compound) at a time. The initial environment is identical to that of a complete program; each statement is executed -in the name space of \verb@__main__@. +in the name space of \module{__main__}. \index{interactive mode} \refbimodindex{__main__} @@ -59,7 +59,7 @@ This syntax is used in the following situations: \item when parsing a module; -\item when parsing a string passed to the \verb@exec@ statement; +\item when parsing a string passed to the \keyword{exec} statement; \end{itemize} @@ -81,14 +81,14 @@ end of the input. There are two forms of expression input. Both ignore leading whitespace. -The string argument to \verb@eval()@ must have the following form: +The string argument to \function{eval()} must have the following form: \bifuncindex{eval} \begin{verbatim} eval_input: condition_list NEWLINE* \end{verbatim} -The input line read by \verb@input()@ must have the following form: +The input line read by \function{input()} must have the following form: \bifuncindex{input} \begin{verbatim} @@ -96,10 +96,10 @@ input_input: condition_list NEWLINE \end{verbatim} Note: to read `raw' input line without interpretation, you can use the -built-in function \verb@raw_input()@ or the \verb@readline()@ method +built-in function \function{raw_input()} or the \method{readline()} method of file objects. \obindex{file} \index{input!raw} \index{raw input} -\bifuncindex{raw_index} -\ttindex{readline} +\bifuncindex{raw_input} +\withsubitem{(file method)}{\ttindex{readline()}} |