Re: EOFError why print(e) cannot print out any information ?

Andrew Berg bahamutzero8825 at gmail.com
Wed Dec 26 06:46:29 CET 2012


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



More information about the Python-list mailing list