[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

Antoine Pitrou report at bugs.python.org
Sun Dec 13 02:52:49 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Well the obvious problem with this approach is that it won't work if
__str__() returns a non-ascii string. The only working solution would be
to replicate the functioning of __str__() in each __unicode__()
implementation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6108>
_______________________________________


More information about the Python-bugs-list mailing list