Tuple Format?
Moshe Zadka
moshez at math.huji.ac.il
Sat Sep 2 02:32:04 EDT 2000
More information about the Python-list mailing list
Sat Sep 2 02:32:04 EDT 2000
- Previous message (by thread): Tuple Format?
- Next message (by thread): Tuple Format?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 1 Sep 2000, Grant Edwards wrote: > In article <Pine.GSO.4.10.10009011423130.22219-100000 at sundial>, Moshe Zadka wrote: > >On Thu, 31 Aug 2000, Gene C wrote: > > > >> Has anyone considered a different format for tuples to get around the > >> somewhat strange single element tuple format? I find when explaining the > >> language to others, the single tuple format always solicits a, "Thats > >> weird." > > > >That's because you're not explaining it correctly. Paraphrasing the NRA, > >"parens don't build tuples, commas build tuples". > > What about ()? > > It's a tuple, but there are no commas, only parens. Right you are! This is the special case, not the 1-element tuple. But people don't have a problem with this, and it even looks nice. -- Moshe Zadka <moshez at math.huji.ac.il> There is no IGLU cabal. http://advogato.org/person/moshez
- Previous message (by thread): Tuple Format?
- Next message (by thread): Tuple Format?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list