En Sun, 06 Apr 2008 16:16:46 -0300, Sami <[EMAIL PROTECTED]> escribió:
> In the Python book that I am using to learn the language it says that > the traceback.print_exc() can be used to stop exception propagation and > make the program keep running. Either the book is wrong or you have misinterpreted what you read. From http://docs.python.org/lib/module-sys.html: excepthook(type, value, traceback) This function prints out a given traceback and exception to sys.stderr. When an exception is raised and uncaught, the interpreter calls sys.excepthook with three arguments, the exception class, exception instance, and a traceback object. In an interactive session this happens just before control is returned to the prompt; in a Python program this happens just before the program exits. The handling of such top-level exceptions can be customized by assigning another three-argument function to sys.excepthook. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list