[Python-Dev] a Constant addition to enum
barry at python.org
Tue Aug 20 00:25:22 CEST 2013
On Aug 06, 2013, at 02:36 PM, Eli Bendersky wrote:
>Personally, I dislike all non-simple uses of Enums. One such use is adding
>behavior to them. This can always be split to separate behavior from the
>Enum itself, and I would prefer that. We went to great lengths to ensure
>that things work in expected ways, but heaping additional features (even as
>separate decorators) is just aggravating thiings. So -1 from me.
>Finally, I suggest we exercise restraint in adding more capabilities to
>enums in 3.4; enums are a new creature for Python and it will be extremely
>useful to see them used in the wild for a while first. We can enhance them
>in 3.5, but premature enhancement is IMHO much more likely to do harm than
As you can probably guess, I fully agree.
I also agree with Nick's suggestion to remove the advanced examples from the
More information about the Python-Dev