Why tuples use parentheses ()'s instead of something else like <>'s?

Timo Virkkala a at a.invalid
Thu Jan 6 05:11:49 EST 2005


seberino at spawar.navy.mil wrote:
> I can't thank you enough for your reply and for everyones' great info
> on this thread.  The end of your email gave a rock solid reason why it
> is impossible to improve upon ()'s for tuples....

Actually, you missed the point. The parentheses don't have anything to do with 
the tuple. They are just used for disambiguation. It's the commas that define 
the tuple.

--
Timo Virkkala



More information about the Python-list mailing list