![](https://secure.gravatar.com/avatar/83d82f694081cb428a909683b6af4233.jpg?s=120&d=mm&r=g)
On Thu, 28 Jul 2011 13:45:54 +1200 Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
Ben Finney wrote:
Barry Warsaw <barry@python.org> writes:
Most enums (at least IME) are discrete objects that don't have a natural ordering.
+1. This is an important property of an enumerated type, IMO.
If you mean that it's important for an enum *not* to have an ordering, I disagree. There are some use cases that benefit from having an ordering, and some that don't. For those that don't, personally I don't care whether it has an ordering or not.
Question: how does iterating over the group fit into this? For some enums (colors, for instance) order may be irrelevant or an implementation detail, but you'd still like to be able to iterate over the group. Not sure it matters, but thought it might. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/ Independent Software developer/SCM consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org