diff options
author | Fred Drake <fdrake@acm.org> | 1999-02-12 20:40:09 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-02-12 20:40:09 (GMT) |
commit | 99cd5735f01b34c8b36eea5f9b3c0fbf62c1a80d (patch) | |
tree | 7a2e3994de13881606c62515334b589982d7d5dc | |
parent | 7b84972450c4b12cfb6b45f48f6e020f36642c4b (diff) | |
download | cpython-99cd5735f01b34c8b36eea5f9b3c0fbf62c1a80d.zip cpython-99cd5735f01b34c8b36eea5f9b3c0fbf62c1a80d.tar.gz cpython-99cd5735f01b34c8b36eea5f9b3c0fbf62c1a80d.tar.bz2 |
Minor markup nits.
-rw-r--r-- | Doc/ref/ref5.tex | 6 | ||||
-rw-r--r-- | Doc/ref/ref7.tex | 24 |
2 files changed, 12 insertions, 18 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index 4eff379..b6579bc 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -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 stride, respectively, substituting \code{None} for missing expressions. -\withsubitem{(slice object attribute)}{% - \ttindex{start}% - \ttindex{stop}% - \ttindex{step}} +\withsubitem{(slice object attribute)}{\ttindex{start} + \ttindex{stop}\ttindex{step}} \subsection{Calls\label{calls}} \index{call} diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex index bfceeea..44b3c1d 100644 --- a/Doc/ref/ref7.tex +++ b/Doc/ref/ref7.tex @@ -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.) Before an except clause's suite is executed, details about the -exception are assigned to three variables in the \module{sys} module: -\code{sys.exc_type} receives the object identifying the exception; -\code{sys.exc_value} receives the exception's parameter; -\code{sys.exc_traceback} receives a traceback object (see section -\ref{traceback}) identifying the point in the program where the -exception occurred. +exception are assigned to three variables in the +\module{sys}\refbimodindex{sys} module: \code{sys.exc_type} receives +the object identifying the exception; \code{sys.exc_value} receives +the exception's parameter; \code{sys.exc_traceback} receives a +traceback object\obindex{traceback} (see section \ref{traceback}) +identifying the point in the program where the exception occurred. These details are also available through the \function{sys.exc_info()} -function, which returns a tuple \code{(exc_type,} \code{exc_value,} -\code{exc_traceback)}. Use of the corresponding variables is +function, which returns a tuple \code{(\var{exc_type}, \var{exc_value}, +\var{exc_traceback})}. Use of the corresponding variables is 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 their previous values (before the call) when returning from a function that handled an exception. -\refbimodindex{sys} -\withsubitem{(in module sys)}{% - \ttindex{exc_type}% - \ttindex{exc_value}% - \ttindex{exc_traceback}} -\obindex{traceback} +\withsubitem{(in module sys)}{\ttindex{exc_type} + \ttindex{exc_value}\ttindex{exc_traceback}} The optional \keyword{else} clause is executed when no exception occurs in the \keyword{try} clause. Exceptions in the \keyword{else} clause are |