In the case of a single element tuple, the trailing comma is required.
a = (\'foo\',)
What about a tuple with multiple elements? It seems t
It's optional: see the Python wiki.
Summary: single-element tuples need a trailing comma, but it's optional for multiple-element tuples.