Return-Path: 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 Subject: Re: Enum vs OrderedEnum Date: Wed, 07 Aug 2013 11:55:35 +1000 References: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 Ian Kelly 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