Message96323
Assume the case of e = MyException() (note: 0 args) with a __str__ that
returns a default message. Now, if the message is ascii, str(e) works
and the user see the default message but unicode(e) returns a
not-so-useful empty string.
On the other hand, if __str__ returns a non-ascii string, then it's
wrong in the first place, because str(e) will fail and returning an
empty string with unicode(e) is not going to help. |
|
Date |
User |
Action |
Args |
2009-12-13 04:51:44 | ezio.melotti | set | recipients:
+ ezio.melotti, barry, exarkun, ncoghlan, pitrou, rbcollins, cvrebert |
2009-12-13 04:51:44 | ezio.melotti | set | messageid: <1260679904.08.0.251337196474.issue6108@psf.upfronthosting.co.za> |
2009-12-13 04:51:43 | ezio.melotti | link | issue6108 messages |
2009-12-13 04:51:42 | ezio.melotti | create | |
|