[Python-checkins] python/dist/src/Doc/lib liblogging.tex,1.26,1.27

vsajip at users.sourceforge.net vsajip at users.sourceforge.net
Sun Oct 3 21:10:08 CEST 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5047/lib

Modified Files:
	liblogging.tex 
Log Message:
Clarified documentation about exc_info keyword parameter

Index: liblogging.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liblogging.tex,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- liblogging.tex	24 Sep 2004 11:46:44 -0000	1.26
+++ liblogging.tex	3 Oct 2004 19:10:05 -0000	1.27
@@ -162,8 +162,10 @@
 The \var{msg} is the message format string, and the \var{args} are the
 arguments which are merged into \var{msg}. The only keyword argument in
 \var{kwargs} which is inspected is \var{exc_info} which, if it does not
-evaluate as false, causes exception information (via a call to
-\function{sys.exc_info()}) to be added to the logging message.
+evaluate as false, causes exception information to be added to the logging
+message. If an exception tuple (in the format returned by
+\function{sys.exc_info()}) is provided, it is used; otherwise,
+\function{sys.exc_info()} is called to get the exception information.
 \end{funcdesc}
 
 \begin{funcdesc}{info}{msg\optional{, *args\optional{, **kwargs}}}
@@ -310,8 +312,10 @@
 The \var{msg} is the message format string, and the \var{args} are the
 arguments which are merged into \var{msg}. The only keyword argument in
 \var{kwargs} which is inspected is \var{exc_info} which, if it does not
-evaluate as false, causes exception information (via a call to
-\function{sys.exc_info()}) to be added to the logging message.
+evaluate as false, causes exception information to be added to the logging
+message. If an exception tuple (as provided by \function{sys.exc_info()})
+is provided, it is used; otherwise, \function{sys.exc_info()} is called
+to get the exception information.
 \end{methoddesc}
 
 \begin{methoddesc}{info}{msg\optional{, *args\optional{, **kwargs}}}



More information about the Python-checkins mailing list