[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

Barry Warsaw barry at python.org
Sat Apr 13 00:35:58 CEST 2013


On Apr 12, 2013, at 05:17 PM, R. David Murray wrote:

>Now, you could *further* require that the type of enum values be
>sortable....but that point you really have no excuse for not allowing
>enum values to be compared :)

I'd be more willing to give up on sorting for the base enum type's iteration
and repr.  It's not crucial functionality whereas I still don't want the base
enum values to support ordered comparisons.

-Barry


More information about the Python-Dev mailing list