Re: [Python-Dev] Enum conversions in the stdlib

2017-03-03 Thread Guyzmo via Python-Dev
On Thu, Mar 02, 2017 at 04:13:17PM -0800, Ethan Furman wrote: > The resulting enumeration is neither in alpha nor value order. While this > has no bearing on programmatic usage I would like these Enums to be ordered, > preferably by value. > > Would anyone prefer lexicographical ordering, and if s

Re: [Python-Dev] Enum conversions in the stdlib

2017-03-03 Thread Ethan Furman
On 03/03/2017 02:35 AM, Guyzmo wrote: On Thu, Mar 02, 2017 at 04:13:17PM -0800, Ethan Furman wrote: The resulting enumeration is neither in alpha nor value order. While this has no bearing on programmatic usage I would like these Enums to be ordered, preferably by value. Would anyone prefer

[Python-Dev] Enum conversions in the stdlib

2017-03-02 Thread Ethan Furman
There are a few modules that have had their constants redefined as Enums, such as signal, which has revealed a minor nit: >>> pp(list(signal.Signals)) [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] The resulting enumeration is neither in alpha no