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 qrczak
Recipients
Date 2006-09-03.12:24:16
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
PyObject_Unicode and the unicode function stopped
working on class objects of subclasses of BaseException
in Python 2.5.

>>> unicode(ImportError)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: descriptor '__unicode__' of
'exceptions.BaseException' object needs an argument

It should work analogously to str:

>>> str(ImportError)
"<type 'exceptions.ImportError'>"
History
Date User Action Args
2007-08-23 14:42:30adminlinkissue1551432 messages
2007-08-23 14:42:30admincreate