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
Date 2009-12-13.01:39:56
SpamBayes Score 3.1143332e-05
Marked as misclassified No
Message-id <1260668398.25.0.948316318492.issue6108@psf.upfronthosting.co.za>
In-reply-to
Content
> IMO __unicode__ should have the same behaviour as __str__. There's no
> reason to implement two different formatting algorithms.

If BaseException has both the methods they have to be both overridden by
derived exceptions in order to have the same behaviour. The simplest way
to do it is to convert the string returned by __str__ to unicode, as I
did in issue6108.diff.
If you have better suggestions let me know.
History
Date User Action Args
2009-12-13 01:39:58ezio.melottisetrecipients: + ezio.melotti, barry, exarkun, ncoghlan, pitrou, cvrebert
2009-12-13 01:39:58ezio.melottisetmessageid: <1260668398.25.0.948316318492.issue6108@psf.upfronthosting.co.za>
2009-12-13 01:39:56ezio.melottilinkissue6108 messages
2009-12-13 01:39:56ezio.melotticreate