[Python-3000] [Python-Dev] Python 3000 Status Update (Long!)

Joachim König him at online.de
Tue Jun 19 16:49:10 CEST 2007


Benji York schrieb:
> Joachim König wrote:
>> could someone enlighten me why
>>
>> {,}
>>
>> can't be used for the empty set, analogous to the empty tuple (,)?
>
> Partially because (,) is not the empty tuple, () is.
Oh, yes, of course. I was thinking of (x) vs. (x,), and that the comma
after the last element is optional if len() > 1, but required when len() 
== 1
and forgot that is is forbidden when len() == 0.

Sorry about that.

Joachim


More information about the Python-3000 mailing list