From: Carl P. <c.j...@hu...> - 2002-01-26 01:06:49
|
Yang, to get exception information, you need to use the sys module. sys.exc_info() will get you a triple. The third component of which is a traceback object. Using the traceback module you can then print out the exception stack as you require. Hope that helps, Carl. -- Dr. Carl Pulley (Lecturer) School of Computing and Mathematics, University of Huddersfield, email: c.j...@hu... Huddersfield WWW: http://scom.hud.ac.uk/scomcjp |