Minor markup nits.

This commit is contained in:
Fred Drake 1999-02-12 20:40:09 +00:00
parent 7b84972450
commit 99cd5735f0
2 changed files with 12 additions and 18 deletions

View File

@ -360,10 +360,8 @@ proper slice is a slice object (see section \ref{types}) whose
values of the expressions given as lower bound, upper bound and values of the expressions given as lower bound, upper bound and
stride, respectively, substituting \code{None} for missing stride, respectively, substituting \code{None} for missing
expressions. expressions.
\withsubitem{(slice object attribute)}{% \withsubitem{(slice object attribute)}{\ttindex{start}
\ttindex{start}% \ttindex{stop}\ttindex{step}}
\ttindex{stop}%
\ttindex{step}}
\subsection{Calls\label{calls}} \subsection{Calls\label{calls}}
\index{call} \index{call}

View File

@ -225,25 +225,21 @@ exception, and the exception occurs in the try clause of the inner
handler, the outer handler will not handle the exception.) handler, the outer handler will not handle the exception.)
Before an except clause's suite is executed, details about the Before an except clause's suite is executed, details about the
exception are assigned to three variables in the \module{sys} module: exception are assigned to three variables in the
\code{sys.exc_type} receives the object identifying the exception; \module{sys}\refbimodindex{sys} module: \code{sys.exc_type} receives
\code{sys.exc_value} receives the exception's parameter; the object identifying the exception; \code{sys.exc_value} receives
\code{sys.exc_traceback} receives a traceback object (see section the exception's parameter; \code{sys.exc_traceback} receives a
\ref{traceback}) identifying the point in the program where the traceback object\obindex{traceback} (see section \ref{traceback})
exception occurred. identifying the point in the program where the exception occurred.
These details are also available through the \function{sys.exc_info()} These details are also available through the \function{sys.exc_info()}
function, which returns a tuple \code{(exc_type,} \code{exc_value,} function, which returns a tuple \code{(\var{exc_type}, \var{exc_value},
\code{exc_traceback)}. Use of the corresponding variables is \var{exc_traceback})}. Use of the corresponding variables is
deprecated in favor of this function, since their use is unsafe in a deprecated in favor of this function, since their use is unsafe in a
threaded program. As of Python 1.5, the variables are restored to threaded program. As of Python 1.5, the variables are restored to
their previous values (before the call) when returning from a function their previous values (before the call) when returning from a function
that handled an exception. that handled an exception.
\refbimodindex{sys} \withsubitem{(in module sys)}{\ttindex{exc_type}
\withsubitem{(in module sys)}{% \ttindex{exc_value}\ttindex{exc_traceback}}
\ttindex{exc_type}%
\ttindex{exc_value}%
\ttindex{exc_traceback}}
\obindex{traceback}
The optional \keyword{else} clause is executed when no exception occurs The optional \keyword{else} clause is executed when no exception occurs
in the \keyword{try} clause. Exceptions in the \keyword{else} clause are in the \keyword{try} clause. Exceptions in the \keyword{else} clause are