Marc-Andre Lemburg added the comment:

Serhiy Storchaka wrote:
>> .__repr__() is not really allowed to return Unicode objects in Python 2.x. 
>> If you do this, you're on your own.
> 
> PyObject_Repr() contains a code which converts unicode to str and raise an 
> exception if __repr__() result is not str or unicode. Unicode __repr__() is 
> expected even if it is not recommended.

True, but the code is not intended to support non-ASCII Unicode,
otherwise we would have taken care to introduce support for this
much earlier in the 2.x series.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5876>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to