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

2013年4月12日 16:33:11 -0700

On 2013年4月12日 18:35:58 -0400, Barry Warsaw <[email protected]> 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.
--David
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to