[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library (original) (raw)
Barry Warsaw barry at python.org
Sat Apr 13 00:35:58 CEST 2013
- Previous message: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
- Next message: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
- Next message: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]