[Python-checkins] CVS: python/dist/src/Doc/lib libsys.tex,1.45,1.46

Ka-Ping Yee ping@users.sourceforge.net
2001年3月22日 21:17:43 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv21825/Doc/lib
Modified Files:
	libsys.tex 
Log Message:
Give a slightly better explanation of excepthook.
Index: libsys.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsys.tex,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** libsys.tex	2001年03月23日 02:46:52	1.45
--- libsys.tex	2001年03月23日 05:17:41	1.46
***************
*** 52,56 ****
 an expression entered in an interactive Python session.
 The display of these values can be customized by assigning
! another function to \code{sys.displayhook}.
 \end{funcdesc}
 
--- 52,56 ----
 an expression entered in an interactive Python session.
 The display of these values can be customized by assigning
! another one-argument function to \code{sys.displayhook}.
 \end{funcdesc}
 
***************
*** 59,68 ****
 \code{sys.stderr}.
 
! \code{sys.excepthook} is called when an exception is raised
! and uncaught. In an interactive session this happens just before
 control is returned to the prompt; in a Python program this happens
 just before the program exits.
 The handling of such top-level exceptions can be customized by
! assigning another function to \code{sys.excepthook}.
 \end{funcdesc}
 
--- 59,70 ----
 \code{sys.stderr}.
 
! When an exception is raised and uncaught, the interpreter calls
! \code{sys.excepthook} with three arguments, the exception class,
! exception instance, and a traceback object.
! In an interactive session this happens just before
 control is returned to the prompt; in a Python program this happens
 just before the program exits.
 The handling of such top-level exceptions can be customized by
! assigning another three-argument function to \code{sys.excepthook}.
 \end{funcdesc}
 

AltStyle によって変換されたページ (->オリジナル) /