Yongzhi Pan added the comment: I tested it and find str of an exception does not contain the exception type:
>>> a = TypeError() >>> str(a) '' >>> a = TypeError('b', 3) >>> a.args ('b', 3) >>> str(a) "('b', 3)" Am I missing some other circumstances? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22379> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com