[Python-Dev] unicode Exception messages in py2.7

Chris Barker chris.barker at noaa.gov
Fri Nov 15 18:41:58 CET 2013

On Fri, Nov 15, 2013 at 9:21 AM, Armin Rigo <arigo at tunes.org> 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.


> I believe this to also be
> a bug, so I opened https://bugs.pypy.org/issue1634 .  According to
> this thread, however, python-dev is against it, so I didn't bother
> adding a CPython bug.

According to that bug report, it looks like CPython doesn't
comopletely handle unicode Exception messages even in py3? Is that
really the case?

And from this thread, I'd say that it's unlikely anyone want to chance
this in py2, but I don't know that making py3 better is this regard is
off the table.



Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov

More information about the Python-Dev mailing list