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
>good.

As you can probably guess, I fully agree.

I also agree with Nick's suggestion to remove the advanced examples from the
documentation.

-Barry

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
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