[issue19210] Unicode Objects in Tuples

Peter Otten report at bugs.python.org
Wed Oct 9 19:46:14 CEST 2013


Peter Otten added the comment:

Be aware that for a 1-tuple the trailing comma is mandatory:

>>> print (u"äöü") # this is a string despite the suggestive parens
äöü
>>> print (u"äöü",) # this is a tuple
(u'\xe4\xf6\xfc',)

----------
nosy: +peter.otten

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


More information about the Python-bugs-list mailing list