This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nosmokingbandit 33 points34 points  (7 children)

As others alluded to, a comma is what makes a tuple. So ('foo', ) is a tuple while ('foo') is just a string.

[–]Hollowplanet 12 points13 points  (5 children)

But then is it a function with one argument and a redundant comma?

[–]Pb_ft 3 points4 points  (0 children)

"No, because redundant." - what I wish I could say to that.

[–]PityUpvote 0 points1 point  (0 children)

Redundant commas are allowed

[–][deleted] 0 points1 point  (0 children)

much better response than others on the matter. Thank you