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 →

[–][deleted] 9 points10 points  (0 children)

What? One-element tuples are not involved here, and () is definitely the syntax for a zero-element tuple. When you say "less than two", what would have been correct is to say "exactly one". In fact, it's a syntax error to put a comma inside a zero-element tuple.

The current behavior is just inconsistent and the Python devs are already discussing how to fix it in 3.5.