Armin Rigo <ar...@users.sourceforge.net> added the comment:

A __repr__() that returns unicode can, in CPython 2.7 be used in  "%s" % x  or 
in  u"%s" % x  --- both expressions then return a unicode without doing any 
encoding --- but it cannot be used anywhere else, e.g. in  "%r" % x  or in  
repr(x).  See also the PyPy issue https://bugs.pypy.org/issue857 .

----------
nosy: +arigo

_______________________________________
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