@@ -208,7 +208,7 @@ \section{Invoking the Interpreter \label{invoking}}
208208
209209Note that there is a difference between \samp {python file} and
210210\samp {python <file}. In the latter case, input requests from the
211- program, such as calls to \code {input()} and \code {raw_input()}, are
211+ program, such as calls to \function {input()} and \function {raw_input()}, are
212212satisfied from \emph {file }. Since this file has already been read
213213until the end by the parser before the program starts executing, the
214214program will encounter end-of-file immediately. In the former case
@@ -271,8 +271,8 @@ \subsection{Error Handling \label{error}}
271271message and a stack trace. In interactive mode, it then returns to
272272the primary prompt; when input came from a file, it exits with a
273273nonzero exit status after printing
274- the stack trace. (Exceptions handled by an \code {except} clause in a
275- \code {try} statement are not errors in this context.) Some errors are
274+ the stack trace. (Exceptions handled by an \keyword {except} clause in a
275+ \keyword {try} statement are not errors in this context.) Some errors are
276276unconditionally fatal and cause an exit with a nonzero exit; this
277277applies to internal inconsistencies and some cases of running out of
278278memory. All error messages are written to the standard error stream;
@@ -285,8 +285,8 @@ \subsection{Error Handling \label{error}}
285285 A problem with the GNU Readline package may prevent this.
286286}
287287Typing an interrupt while a command is executing raises the
288- \code {KeyboardInterrupt} exception, which may be handled by a
289- \code {try} statement.
288+ \exception {KeyboardInterrupt} exception, which may be handled by a
289+ \keyword {try} statement.
290290
291291\subsection {Executable Python Scripts \label {scripts } }
292292
0 commit comments