On 2012.12.25 23:26, iMath wrote: > why print(e) cannot print out any information ? If you want to manipulate tracebacks, use sys.exc_info() and the traceback module from the standard library. The logging module also comes with an exception() function and an exception() method for Logger objects that will log tracebacks.
http://docs.python.org/3/library/sys.html#sys.exc_info http://docs.python.org/3/library/traceback.html http://docs.python.org/3/library/logging.html -- CPython 3.3.0 | Windows NT 6.2.9200 -- http://mail.python.org/mailman/listinfo/python-list