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

Fred L. Drake fdrake@users.sourceforge.net
Fri, 04 Jan 2002 20:04:58 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv29613/lib

Modified Files:
      Tag: release21-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.46
retrieving revision 1.46.2.1
diff -C2 -d -r1.46 -r1.46.2.1
*** libsys.tex	2001/03/23 05:17:41	1.46
--- libsys.tex	2002/01/05 04:04:56	1.46.2.1
***************
*** 107,111 ****
  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
--- 107,111 ----
  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