>>Why are empty enumerations not allowed?  Empty sets, empty lists,
>>empty dictionaries are all allowed.  I don't see any obvious benefits
>>to not allowing empty enumerations.
> 
> What is an empty enum? How and when would you use it?

It's a Zen thing :)  (agh!  not the zen thread!)

 >>> roundSquares = enum()
 >>> soundsMadeByOneHandClapping = enum()
 >>> def nirvana(emptyness):
...     if emptyness != enum():
...             throw UnthrowableKoan
...

(okay...maybe it's a little too early on a weekdays.mon morning)

-tkc




-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to