The Tuple syntax is perfectly regular

jepler epler jepler.lnk at lnk.ispi.net
Mon Sep 4 23:39:56 CEST 2000


'(', (item, ',')*, ')'

()
(1,)
(1,2,)

the only irregularity is that the trailing comma is sometimes optional.
Surely everybody will be happy if we eliminate that little bit of cruft.

Jeff



More information about the Python-list mailing list