[Python-Dev] [Python-checkins] peps: Pre-alpha draft for PEP 435 (enum). The name is not important at the moment, as (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Sat Feb 23 16:06:45 CET 2013


On Sat, 23 Feb 2013 16:02:31 +0100 Stefan Krah <stefan at bytereef.org> wrote:

eli.bendersky <python-checkins at python.org> wrote: > +Ordered comparisons between enumeration values are not supported. Enums are > +not integers!

Hmm. I think this limits interoperation with C libraries and prototyping C code.

Agreed, this is a deal-breaker IMO. I'd actually argue that enums are not terribly useful apart from interacting with C constants.

Regards

Antoine.



More information about the Python-Dev mailing list