[Python-checkins] CVS: python/dist/src/Doc/lib libsys.tex,1.56,1.56.6.1
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 04 Jan 2002 20:04:38 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv29577/lib
Modified Files:
Tag: release22-maint
libsys.tex
Log Message:
Do not mask the name of a built-in function in example code.
Based on comment sent to python-docs.
Index: libsys.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsys.tex,v
retrieving revision 1.56
retrieving revision 1.56.6.1
diff -C2 -d -r1.56 -r1.56.6.1
*** libsys.tex 2001/11/28 07:26:15 1.56
--- libsys.tex 2002/01/05 04:04:36 1.56.6.1
***************
*** 106,110 ****
being garbage collected. Since most functions don't need access to
the traceback, the best solution is to use something like
! \code{type, value = sys.exc_info()[:2]} to extract only the
exception type and value. If you do need the traceback, make sure
to delete it after use (best done with a \keyword{try}
--- 106,110 ----
being garbage collected. Since most functions don't need access to
the traceback, the best solution is to use something like
! \code{exctype, value = sys.exc_info()[:2]} to extract only the
exception type and value. If you do need the traceback, make sure
to delete it after use (best done with a \keyword{try}