Message196014
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. |
|
Date |
User |
Action |
Args |
2013-08-23 19:22:50 | lemburg | set | recipients:
+ lemburg, arigo, vstinner, ezio.melotti, eric.araujo, r.david.murray, liori, Nam.Nguyen, serhiy.storchaka |
2013-08-23 19:22:50 | lemburg | link | issue5876 messages |
2013-08-23 19:22:50 | lemburg | create | |
|