[Python-checkins] python/dist/src/Doc/tut tut.tex,1.176,1.177

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 28 Feb 2003 19:20:42 -0800


Update of /cvsroot/python/python/dist/src/Doc/tut
In directory sc8-pr-cvs1:/tmp/cvs-serv29053/Doc/tut

Modified Files:
	tut.tex 
Log Message:
- New function sys.exc_clear() clears the current exception.  This is
  rarely needed, but can sometimes be useful to release objects
  referenced by the traceback held in sys.exc_info()[2].  (SF patch
  #693195.)  Thanks to Kevin Jacobs!


Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.176
retrieving revision 1.177
diff -C2 -d -r1.176 -r1.177
*** tut.tex	28 Oct 2002 19:28:22 -0000	1.176
--- tut.tex	1 Mar 2003 03:20:39 -0000	1.177
***************
*** 2452,2463 ****
  >>> dir(sys)
  ['__displayhook__', '__doc__', '__excepthook__', '__name__', '__stderr__',
!  '__stdin__', '__stdout__', '_getframe', 'argv', 'builtin_module_names',
!  'byteorder', 'copyright', 'displayhook', 'exc_info', 'exc_type',
!  'excepthook', 'exec_prefix', 'executable', 'exit', 'getdefaultencoding',
!  'getdlopenflags', 'getrecursionlimit', 'getrefcount', 'hexversion',
!  'maxint', 'maxunicode', 'modules', 'path', 'platform', 'prefix', 'ps1',
!  'ps2', 'setcheckinterval', 'setdlopenflags', 'setprofile',
!  'setrecursionlimit', 'settrace', 'stderr', 'stdin', 'stdout', 'version',
!  'version_info', 'warnoptions']
  \end{verbatim}
  
--- 2452,2464 ----
  >>> dir(sys)
  ['__displayhook__', '__doc__', '__excepthook__', '__name__', '__stderr__',
!  '__stdin__', '__stdout__', '_getframe', 'api_version', 'argv', 
!  'builtin_module_names', 'byteorder', 'callstats', 'copyright',
!  'displayhook', 'exc_clear', 'exc_info', 'exc_type', 'excepthook',
!  'exec_prefix', 'executable', 'exit', 'getdefaultencoding', 'getdlopenflags',
!  'getrecursionlimit', 'getrefcount', 'hexversion', 'maxint', 'maxunicode',
!  'meta_path', 'modules', 'path', 'path_hooks', 'path_importer_cache',
!  'platform', 'prefix', 'ps1', 'ps2', 'setcheckinterval', 'setdlopenflags',
!  'setprofile', 'setrecursionlimit', 'settrace', 'stderr', 'stdin', 'stdout',
!  'version', 'version_info', 'warnoptions']
  \end{verbatim}