Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'attribute': 0.07; 'correct.': 0.07; 'desired.': 0.07; 'pypi': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'python': 0.11; 'broken.': 0.16; 'received:69.93': 0.16; 'received:gateway13.websitewelcome.com': 0.16; 'wrote:': 0.18; 'library': 0.18; 'examples': 0.20; 'example': 0.22; 'header:User-Agent:1': 0.23; '2.x': 0.24; 'necessary.': 0.24; 'van': 0.27; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'am,': 0.29; 'asap.': 0.31; 'catching': 0.31; 'purely': 0.31; 'could': 0.34; 'ordered': 0.36; 'charset:us- ascii': 0.36; 'thanks': 0.36; "i'll": 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'received:173': 0.61; 'respect': 0.70; '3.4': 0.84 Date: Tue, 30 Jul 2013 11:38:30 -0700 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: OrderedEnum examples References: <51f8036c$0$2995$6d4158fb@reader.xsnews.nl> In-Reply-To: <51f8036c$0$2995$6d4158fb@reader.xsnews.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.233]) [173.12.184.233]:38916 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 1 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375210974 news.xs4all.nl 15928 [2001:888:2000:d::a6]:36743 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51597 On 07/30/2013 11:18 AM, Bas van der Wulp wrote: > Using the enum34 0.9.13 package from PyPi in Python 2.7.3, the examples for OrderedEnum seem to be broken. Thanks for catching that, I'll get it fixed asap. > Also, in the example in the Python 3.4 library documentation (section 8.17.2) has the __ordered__ attribute removed > (presumably because, in contrast to Python 2.x, Python 3 will respect the order of attribute definition). Correct. In 3.4 __ordered__ never came into being as it was not necessary. I added that purely so that 2.x could be ordered if desired. -- ~Ethan~