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.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com