On Aug 6, 2013 5:15 PM, "Ethan Furman" <et...@stoneleaf.us> wrote: > > Use the .value attribute instead. You could also substitute self for Environment.
It feels more natural and readable to compare the enum instances rather than their value attributes. If I am ordering the values then that seems to imply that the enumeration itself is ordered. So I guess my question is better stated: is there a better way to do this that doesn't involve ordered comparisons at all?
-- http://mail.python.org/mailman/listinfo/python-list