[Python-Dev] unicode Exception messages in py2.7 (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat Nov 16 00:58:56 CET 2013
- Previous message: [Python-Dev] unicode Exception messages in py2.7
- Next message: [Python-Dev] unicode Exception messages in py2.7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Armin Rigo wrote:
I figured that even using the traceback.py module and getting "Exception: \u1234\u1235\u5321" is rather useless if you tried to raise an exception with a message in Thai.
But at least it tells you that something went wrong, and points to the place in the code where it happened. That has to be better than pretending that nothing happened at all.
Also, if the escaping preserves the original byte sequence of the message, there's a chance that someone will be able to figure out what the message said.
-- Greg
- Previous message: [Python-Dev] unicode Exception messages in py2.7
- Next message: [Python-Dev] unicode Exception messages in py2.7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]