This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients barry, cvrebert, exarkun, ezio.melotti, ncoghlan, pitrou, rbcollins
Date 2009-12-13.04:51:42
SpamBayes Score 0.0005030588
Marked as misclassified No
Message-id <1260679904.08.0.251337196474.issue6108@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-12-13 04:51:44ezio.melottisetrecipients: + ezio.melotti, barry, exarkun, ncoghlan, pitrou, rbcollins, cvrebert
2009-12-13 04:51:44ezio.melottisetmessageid: <1260679904.08.0.251337196474.issue6108@psf.upfronthosting.co.za>
2009-12-13 04:51:43ezio.melottilinkissue6108 messages
2009-12-13 04:51:42ezio.melotticreate