Hi, FWIW, the pure Python traceback.py module has a slightly different (and saner) behavior: >>> e = Exception(u"xx\u1234yy") >>> traceback.print_exception(Exception, e, None) Exception: xx\u1234yy I'd suggest that the behavior of the two should be unified anyway. The traceback module uses value.encode("ascii", "backslashreplace") for any unicode object. A bientôt, Armin.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4