[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
R. David Murray
rdmurray at bitdance.com
Sat Apr 13 01:31:10 CEST 2013
On Fri, 12 Apr 2013 18:35:58 -0400, Barry Warsaw <barry at python.org> wrote:
> 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.
That's fine with me. I'm just requesting that it be self-consistent.
More information about the Python-Dev