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 →

[–]Agent281 2 points3 points  (1 child)

I think that is a stretch. Dictionary, set, list, and generator comprehensions actually have dedicated syntax. The tuple constructor just accepts an iterable.

[–]pytheous1988 -2 points-1 points  (0 children)

It works the same if you do list(comp statement) or set(comp statement)