[Python-ideas] constant/enum type in stdlib

Chris Angelico rosuav at gmail.com
Tue Feb 12 22:36:11 CET 2013


On Tue, Feb 12, 2013 at 7:06 PM, Tim Delaney
<timothy.c.delaney at gmail.com> wrote:
> This actually makes a kind of perverse sense. Conceptually the actual
> EnumValues are the instances of the Enum (and in fact, I've made them
> pretend to actually be so).

Not so perverse. I think that makes very good sense (but then, I know
C++ enums, so maybe I'm tainted). Looks good, though I've not actually
played with the code.

ChrisA



More information about the Python-ideas mailing list