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 <rep...@bugs.python.org> <http://bugs.python.org/issue19210> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com