Eric V. Smith added the comment: As Martin points out, your first example is printing a string, not a tuple. The parens here are not building a tuple, they are just used for grouping in the expression, and are not doing anything in this example.
So my explanation still holds: everything is working as designed. The output of the first two print statements uses str(astring), the second two use str(atuple). repr of a tuple is effectively: "(" + ", ".join(repr(item) for item in tuple) + ")" So when printing your tuples, Python is using the repr of each string in the tuple. Since this is not a bug or feature request, it's probably best to continue the discussion on python-list. ---------- _______________________________________ 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