Message29747
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'>" |
|
Date |
User |
Action |
Args |
2007-08-23 14:42:30 | admin | link | issue1551432 messages |
2007-08-23 14:42:30 | admin | create | |
|