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

Brian Beck exogen at gmail.com
Wed Dec 29 05:45:14 EST 2004


seberino at spawar.navy.mil wrote:
> Wouldn't it have been better to define tuples with <>'s or {}'s or
> something else to avoid this confusion??

Well, to comment on the part that nobody else did...
< and > are binary operators, a la 3 > 1, "one" < "two"
and {}'s are clearly already used for dictionaries.

--
Brian Beck
Adventurer of the First Order



More information about the Python-list mailing list