Syntax error for naked trailing comma for 1-tuple

I’ve used it quite a few times and wouldn’t like to lose it.

Some thoughts:

Parentheses for the 1-tuple would reduce consistency with the other lines:

foos = 1, 2
bars = 3,
quxs = 4, 5, 6

I couldn’t quickly out-comment like this anymore:

tests = test1, #test2, test3

If it applies to targets as well, I couldn’t do

for value, in query_results:

anymore and it would reduce consistency with loops like for x, y in points:. If it doesn’t apply to targets, then we lose consistency between targets and tuples.

8 Likes