Message143632
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 . |
|
Date |
User |
Action |
Args |
2011-09-06 16:56:41 | arigo | set | recipients:
+ arigo, lemburg, vstinner, ezio.melotti, eric.araujo, r.david.murray, liori, Nam.Nguyen |
2011-09-06 16:56:41 | arigo | set | messageid: <1315328201.5.0.263485758966.issue5876@psf.upfronthosting.co.za> |
2011-09-06 16:56:40 | arigo | link | issue5876 messages |
2011-09-06 16:56:40 | arigo | create | |
|