PEP 354: Enumerations in Python

Paul Rubin http
Mon Feb 27 01:13:47 EST 2006


Ben Finney <bignose+python at benfinney.id.au> writes:
> Enumerations with no values are meaningless.  The exception
> ``EnumEmptyError`` is raised if the constructor is called with no
> value arguments.

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.



More information about the Python-list mailing list