[Python-Dev] enum discussion: can someone please summarize open issues?
Barry Warsaw
barry at python.org
Wed May 1 08:01:08 CEST 2013
On Apr 29, 2013, at 11:10 AM, Stephen J. Turnbull wrote:
>Ethan thinks that "Seasons(3)" is a typecast, not an access into a
>mapping (which would be better expressed by "Seasons[3]"). Ie, the
>inverse of "int(AUTUMN)".
>
>This is consistent with the "AUTUMN is-a Seasons" position that Ethan
>and Guido take. It's inconsistent with the "AUTUMN is-a
>Seasons_VALUE" implementation of Flufl.Enum.
I think this sums it up perfectly. I get that using class definition syntax
is what sends people down Ethan's path.
-Barry
More information about the Python-Dev
mailing list