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-20.19:29:51
SpamBayes Score 4.9034526e-07
Marked as misclassified No
Message-id <1261337398.52.0.792599789828.issue6108@psf.upfronthosting.co.za>
In-reply-to
Content
I created a comprehensive set of tests to check all the possibilities
that I listed in msg96319 and updated the patch for Object/exceptions.c.
Without patch all the test_*_with_overridden__str__ and
test_builtin_exceptions fail, both on 2.6 and on trunk, with the patch
all the tests pass.
The code in exceptions.c now does the equivalent of unicode(e.__str__())
instead of unicode(str(e)). If e.__str__() returns a non-ascii unicode
string, unicode() now shows the message instead of raising an error.
History
Date User Action Args
2009-12-20 19:29:58ezio.melottisetrecipients: + ezio.melotti, barry, exarkun, ncoghlan, pitrou, rbcollins, cvrebert
2009-12-20 19:29:58ezio.melottisetmessageid: <1261337398.52.0.792599789828.issue6108@psf.upfronthosting.co.za>
2009-12-20 19:29:52ezio.melottilinkissue6108 messages
2009-12-20 19:29:52ezio.melotticreate