Simple unicode-safe version of str(exception)?

Torsten Bronger bronger at physik.rwth-aachen.de
Tue Apr 29 17:57:18 EDT 2008


Hallöchen!

Martin v. Löwis writes:

>> Should I report this as a bug? I suspect it's a misfeature.
>
> Please no. There isn't much that can be done about it, IMO.

One could give Exception a __unicode__ method.  On the other hand,
this kind of conversion of an exception to something printable is a
quite ugly kludge anyway in my opinion, so it needn't special
support.

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
                                      Jabber ID: bronger at jabber.org
               (See http://ime.webhop.org for further contact info.)



More information about the Python-list mailing list