Update of /cvsroot/python/python/dist/src/Doc/ref In directory usw-pr-cvs1:/tmp/cvs-serv20044 Modified Files: ref7.tex Log Message: Added cross-references to related material on exceptions. Closes SF bug #217195. Make sure section numbers wrap together with the preceeding word ("section"). Index: ref7.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref7.tex,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** ref7.tex 1 Apr 2002 21:34:28 -0000 1.34 --- ref7.tex 18 Oct 2002 15:20:32 -0000 1.35 *************** *** 84,88 **** It selects exactly one of the suites by evaluating the expressions one ! by one until one is found to be true (see section \ref{Booleans} for the definition of true and false); then that suite is executed (and no other part of the \keyword{if} statement is executed or evaluated). If --- 84,88 ---- It selects exactly one of the suites by evaluating the expressions one ! by one until one is found to be true (see section~\ref{Booleans} for the definition of true and false); then that suite is executed (and no other part of the \keyword{if} statement is executed or evaluated). If *************** *** 252,256 **** 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()} --- 252,256 ---- 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()} *************** *** 300,303 **** --- 300,307 ---- \stindex{continue} + Additional information on exceptions can be found in + section~\ref{exceptions}, and information on using the \keyword{raise} + statement to generate exceptions may be found in section~\ref{raise}. + \section{Function definitions\label{function}} *************** *** 306,310 **** A function definition defines a user-defined function object (see ! section \ref{types}): \obindex{user-defined function} \obindex{function} --- 310,314 ---- A function definition defines a user-defined function object (see ! section~\ref{types}): \obindex{user-defined function} \obindex{function} *************** *** 369,374 **** \end{verbatim} ! Function call semantics are described in more detail in section ! \ref{calls}. A function call always assigns values to all parameters mentioned in the parameter list, either from position arguments, from keyword --- 373,378 ---- \end{verbatim} ! Function call semantics are described in more detail in ! section~\ref{calls}. A function call always assigns values to all parameters mentioned in the parameter list, either from position arguments, from keyword *************** *** 382,386 **** It is also possible to create anonymous functions (functions not bound to a name), for immediate use in expressions. This uses lambda forms, ! described in section \ref{lambda}. Note that the lambda form is merely a shorthand for a simplified function definition; a function defined in a ``\keyword{def}'' statement can be passed around or --- 386,390 ---- It is also possible to create anonymous functions (functions not bound to a name), for immediate use in expressions. This uses lambda forms, ! described in section~\ref{lambda}. Note that the lambda form is merely a shorthand for a simplified function definition; a function defined in a ``\keyword{def}'' statement can be passed around or *************** *** 394,398 **** local function that can be returned or passed around. Free variables used in the nested function can access the local variables of the ! function containing the def. See section \ref{naming} for details. --- 398,402 ---- local function that can be returned or passed around. Free variables used in the nested function can access the local variables of the ! function containing the def. See section~\ref{naming} for details. *************** *** 401,405 **** \stindex{class} ! A class definition defines a class object (see section \ref{types}): \obindex{class} --- 405,409 ---- \stindex{class} ! A class definition defines a class object (see section~\ref{types}): \obindex{class} *************** *** 417,421 **** inheritance list, if present. Each item in the inheritance list should evaluate to a class object. The class's suite is then executed ! in a new execution frame (see section \ref{naming}), using a newly created local namespace and the original global namespace. (Usually, the suite contains only function definitions.) When the --- 421,425 ---- inheritance list, if present. Each item in the inheritance list should evaluate to a class object. The class's suite is then executed ! in a new execution frame (see section~\ref{naming}), using a newly created local namespace and the original global namespace. (Usually, the suite contains only function definitions.) When the
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4