The Tuple syntax is perfectly regular

jepler epler jepler.lnk at lnk.ispi.net
Tue Sep 5 04:57:52 CEST 2000


On Mon, 04 Sep 2000 22:07:17 GMT, Grant Edwards
 <ge at nowhere.none> wrote:
>No, that's not the tuple syntax.  The syntax is:
>
>      empty: ()
>  singleton: a,
>       etc.: a,b
>           : a,b,c 
>
>The parens are only part of tuple syntax in the case of the
>empty touple.  You're right about an optional trailing comma on
>tuples with 2+ items.

Thanks for the correction.  Actually, though, my original post was intended
as tongue-in-cheek.  So, now, I'll suggest that we make the () mandantory.
There, now it's completely regular.

cheek-around-tongue-'ly,
Jeff



More information about the Python-list mailing list