[issue19210] Unicode Objects in Tuples

Stephen Tucker report at bugs.python.org
Wed Oct 9 18:39:21 CEST 2013


New submission from Stephen Tucker:

If a tuple consists of a single unicode object with non-ASCII characters in it, the printing of the tuple causes the non-ASCII characters to appear correctly as characters.

If the tuple contains such a unicode object and anything else (even if it contains nothing else but two or more such unicode objects), the printing of the tuple causes all non-ASCII characters in the objects to appear as their "\uxxxx" escapes instead of as their characters.

The same thing happens when writing such tuples to a file that has been opened using codecs.open (<filename>, 'w', 'utf-8').

----------
components: Windows
messages: 199308
nosy: Stephen_Tucker
priority: normal
severity: normal
status: open
title: Unicode Objects in Tuples
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19210>
_______________________________________


More information about the Python-bugs-list mailing list