Tuple Format?

Grant Edwards ge at nowhere.none
Sat Sep 2 01:33:53 CEST 2000

In article <slrn8r09ho.qnp.quinn at krone.ugcs.caltech.edu>, Quinn Dunkan 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 ()?
>The single tuple format *is* weird.  The tutorial says so: "A
>special problem is the construction of tuples containing 0 or 1
>items: the syntax has some extra quirks to accommodate these."
>Python has some weird bits. They're generally not seriously
>weird, though.

Had standard keyboards and charsets just one more set of
delimiters I imagine that this "wierd bit" wouldn't be there
at all.

Grant Edwards                   grante             Yow!  LOOK!!! I'm WALKING
                                  at               in my SLEEP again!!

More information about the Python-list mailing list