Message143553
Debian SID. No, it wasn't.
Python 2.7.2+ (default, Aug 16 2011, 09:23:59)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class T(object):
... def __repr__(self): return u'あみご'
...
>>> T().__repr__()
u'\u3042\u307f\u3054'
>>> print T().__repr__()
あみご
>>> T()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
>>> print T()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
>>> import sys
>>> sys.stdin.encoding
'UTF-8'
>>> sys.stdout.encoding
'UTF-8' |
|
Date |
User |
Action |
Args |
2011-09-05 17:27:42 | liori | set | recipients:
+ liori, lemburg, vstinner, ezio.melotti, eric.araujo, r.david.murray, Nam.Nguyen |
2011-09-05 17:27:42 | liori | set | messageid: <1315243662.59.0.256574529098.issue5876@psf.upfronthosting.co.za> |
2011-09-05 17:27:42 | liori | link | issue5876 messages |
2011-09-05 17:27:41 | liori | create | |
|