I have never wanted to declare a tuple without surrounding it with ().
No? I do that occasionally, e.g.:
x, y = 5, 6No? I do that occasionally, e.g.:
x, y = 5, 6 (x, y) = (5, 6)
makes it clearer to "visually grep" that it's not a normal assignment though. print x,
print y
But I generall find myself doing the , in the situation like (element1,) to create a new tuple. x = ,
causes a syntax error, while x = (,)
creates an empty tuple. >>> x=(,)
File "<stdin>", line 1
x=(,)
^
SyntaxError: invalid syntax> Empty tuples are constructed by an empty pair of parentheses;
And it works fine
>>> x = ()
>>> x
()
I guess Herge mean that? After all, his argument was that a tuple is not always defined by the comma.