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

Barry Warsaw barry at python.org
Mon Feb 25 18:33:42 CET 2013


On Feb 25, 2013, at 05:19 PM, MRAB wrote:

>Would we be doing either of those? Surely we would be using a dict
>instead, and what does a dict use, identity or equality?

It's just a contrived example for email brevity.  In my real world examples,
the code inside the conditions can be much more complicated and not conducive
to dict usage.

-Barry


More information about the Python-Dev mailing list