This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author liori
Recipients Nam.Nguyen, eric.araujo, ezio.melotti, lemburg, liori, r.david.murray, vstinner
Date 2011-09-05.17:27:41
SpamBayes Score 1.5217394e-08
Marked as misclassified No
Message-id <1315243662.59.0.256574529098.issue5876@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2011-09-05 17:27:42liorisetrecipients: + liori, lemburg, vstinner, ezio.melotti, eric.araujo, r.david.murray, Nam.Nguyen
2011-09-05 17:27:42liorisetmessageid: <1315243662.59.0.256574529098.issue5876@psf.upfronthosting.co.za>
2011-09-05 17:27:42liorilinkissue5876 messages
2011-09-05 17:27:41lioricreate