[Python-ideas] Enums

Ben Finney ben+python at benfinney.id.au
Thu Jul 28 06:51:48 CEST 2011


Mike Meyer <mwm at mired.org> writes:

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

You can iterate over members of a set, too. What's the question?

-- 
 \       “To have the choice between proprietary software packages, is |
  `\      being able to choose your master. Freedom means not having a |
_o__)                        master.” —Richard M. Stallman, 2007-05-16 |
Ben Finney




More information about the Python-ideas mailing list