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


Groups > comp.lang.python > #52096

Re: Enum vs OrderedEnum

Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'spreading': 0.09; '\xe2\x80\x94': 0.09; 'python': 0.11; '16)': 0.16; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; ':-)': 0.16; 'language': 0.16; 'code,': 0.22; 'saying': 0.22; 'header:User-Agent:1': 0.23; 'java': 0.24; 'header:X-Complaints- To:1': 0.27; 'writes:': 0.31; 'class': 0.32; 'minimal': 0.33; 'but': 0.35; 'add': 0.35; 'url:org': 0.36; 'ben': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'ian': 0.60; 'hope': 0.61; 'kind': 0.63; 'skip:\xe2 10': 0.65; '8bit%:43': 0.74; 'sex': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Enum vs OrderedEnum
Date Wed, 07 Aug 2013 11:55:35 +1000
References <CALwzidm5LSH891oAvK_tzNBY5K-BNS-D970Pa_LLxZXWCb6O9w@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host rasputin.madmonks.org
X-Public-Key-ID 0xBD41714B
X-Public-Key-Fingerprint 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-gpg.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock sha1:fJc9eHAvSxaDctTemN1HSEZGUJc=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.292.1375840552.1251.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375840552 news.xs4all.nl 15863 [2001:888:2000:d::a6]:52479
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:52096

Show key headers only | 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