Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin1!goblin.stu.neva.ru!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; '"this': 0.03; 'true,': 0.05; 'counting': 0.09; 'logic': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'top-level': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'rules': 0.22; 'header:In-Reply- To:1': 0.27; 'on,': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; 'that.': 0.31; '25,': 0.31; "d'aprano": 0.31; 'enforce': 0.31; 'steven': 0.31; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'simply': 0.61; 'further': 0.61; 'smith': 0.68; 'article': 0.77; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=ukE83VCyDSdbqD39fNgKLY/+pFuX/vp+dK8RXnW0nb8=; b=JBRaiDC7uZGeLfVH5uvSJn7PMfkBl/K5UeFF1MbbXmktuW2Vw4afuB0mtLVNI7KQaa 3gEnsxzzu1o6El/KlhHvdZ3A7GnQZl/NkM/lQoQpzafeeGUT0t4rBjm3JLX4npEMVpa1 hWwudjfWDG43Tm9e11g4VYVKMZayTY37FR6RRt0XmHYTrrEFsPDsPTewDgl6SSoVS5IG GDf4e1ercv3cchOnPN87Dx8JLUZIpaQlz/bkuse49DXJhMns6qH+ude9Z1/aeL0x+4Yc Knt+NTBW7psxwDFhgyLumiuzPQD2kJ9/C1q8AM9iS/3N3OX4x2BrrSha6RpVEUe095rp icng== MIME-Version: 1.0 X-Received: by 10.68.217.135 with SMTP id oy7mr38518741pbc.133.1366856445278; Wed, 24 Apr 2013 19:20:45 -0700 (PDT) In-Reply-To: References: <5178884b$0$29977$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 25 Apr 2013 12:20:45 +1000 Subject: Re: epiphany From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366856455 news.xs4all.nl 15863 [2001:888:2000:d::a6]:44489 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44310 On Thu, Apr 25, 2013 at 11:41 AM, Roy Smith wrote: > In article <5178884b$0$29977$c3e8da3$5496439d@news.astraweb.com>, > Steven D'Aprano wrote: > >> I don't see why you would need anything like that. Reading further on, I >> see that you are counting unimplemented rules as true, for some reason >> which I don't understand. > > The top-level logic we need to enforce is "this configuration doesn't > violate any rules". Then have your unimplemented rules simply return True. Easy! ChrisA