News for hackers. Stuff that matters.
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by mixmastamyk on Friday May 10, 2013 @06:26PM (#5689002)
I guess I'm looking for a usecase that namedtuple (or set...) doesn't support. Here's one example:

http://pythonpath.wordpress.com/2012/01/26/python-enum-with-...

Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by shoo on Friday May 10, 2013 @08:13PM (#5689266)
in that example the values of the enumerated constants are simply integer values, they do not have their own type. so there is nothing stopping you comparing values from two unrelated enumerations, and getting a nonsensical True or False result, instead of a TypeError.
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by mixmastamyk on Sunday May 12, 2013 @05:28PM (#5695928)
I suppose that's true and theoretically useful. I don't find myself coding nonsense very often, but python has not been a language that gives much support (or is appropriate) to use cases that can't tolerate any.

I now see some good uses for Enum, but (with a skeptical eye to additions) I believe that the reasons to keep the language/libs small are equally important.