Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52096

Re: Enum vs OrderedEnum

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Enum vs OrderedEnum
Date 2013-08-07 11:55 +1000
References <CALwzidm5LSH891oAvK_tzNBY5K-BNS-D970Pa_LLxZXWCb6O9w@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.292.1375840552.1251.python-list@python.org> (permalink)

Show all headers | View raw


Ian Kelly <ian.g.kelly@gmail.com> writes:

> class Environment(OrderedEnum):

I have nothing to add regarding the Python code, but I wanted to make a
language correction:

>     gaia = 1
>     fertile = 2
>     terran, jungle, ocean, arid, steppe, desert, minimal = range(3, 10)
>     barren, tundra, dead, inferno, toxic, radiated = range(10, 16)

Terrain that is “radiated” would be terrain that has some kind of spokes
spreading out from its centre. I think you mean “irradiated”.

Hope the game goes well :-)

-- 
 \      “Saying that Java is nice because it works on all OSes is like |
  `\     saying that anal sex is nice because it works on all genders” |
_o__)                                                —http://bash.org/ |
Ben Finney

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Enum vs OrderedEnum Ben Finney <ben+python@benfinney.id.au> - 2013-08-07 11:55 +1000

csiph-web