Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.147 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.71; '*S*': 0.01; 'subject:PEP': 0.07; 'ambiguity': 0.09; '"and"': 0.16; '24,': 0.16; 'example)': 0.16; 'iterable,': 0.16; 'nonetheless': 0.16; 'wrote:': 0.18; '(in': 0.22; 'example.': 0.24; 'parse': 0.24; 'mon,': 0.24; 'second': 0.26; '(for': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'generally': 0.29; 'message-id:@mail.gmail.com': 0.30; 'easier': 0.31; 'lists': 0.32; 'probably': 0.32; 'guess': 0.33; "i'd": 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'being': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'expect': 0.39; 'to:addr:python.org': 0.39; 'subject:? ': 0.60; 'black': 0.61; 'gone': 0.61; 'simple': 0.61; 'first': 0.61; 'more': 0.64; 'statement,': 0.68; 'subject:this': 0.83; 'ian,': 0.84; 'results,': 0.84; 'taken.': 0.84; 'technically': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=FWVZ5plQczOvLDzW6vYcxDAJG0t/CPxPQFuhMIzsBRY=; b=L6s2Bxm55Tx9m216W/zbUlNx6c/KOcUa9w90dA5WrK4mXNwsySOkxvubX2jqCsCauF 5zRgxlqwQcSbvoEanMUrPQdOp08QZ3A//BzwL8B0Tr/HGTuopDH8qDd93q4+i1LlqiQ1 9ipc/PNIm60roNkN1k2np2AVlYnOvI9Vi+I+4QCIojy3ERfjW0ePTyuaQdld7e4Mvm96 EBOazRM5ljasS8PYKHu2OJKC0VxTWhfIsKOTJzVvD+q/+rHjcTFIsw5BEG/IVB+jJ/w1 vSMaqtjU1LlRJTAVAe+zg/lOd3koIZnXdgFQUPyOZ1vrTaHzbKOEXh95L2PtVCciLCj9 RCxg== X-Received: by 10.66.146.9 with SMTP id sy9mr580224pab.16.1372175972373; Tue, 25 Jun 2013 08:59:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <8D03F312C70D2EF-1864-17DF3@webmail-m103.sysops.aol.com> References: <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> <8D03F312C70D2EF-1864-17DF3@webmail-m103.sysops.aol.com> From: Ian Kelly Date: Tue, 25 Jun 2013 09:58:52 -0600 Subject: Re: Is this PEP-able? fwhile To: Python 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372175976 news.xs4all.nl 15959 [2001:888:2000:d::a6]:58406 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49168 On Mon, Jun 24, 2013 at 2:33 PM, wrote: > Ian, > > Regarding your first message breaks are anathema (for many) and your other > alternative is complicated. > > Regarding your second post, anding of lists is allowed, but generally > returns non-utile results, but point taken. > I guess technically it could be the last statement, with the condition just > being ListD in your example. To make > the condition more complex (in your example) you'd have to add parens. I'd probably have gone with the first "and". The condition is more likely to use ands than the iterable, and also I expect it would be easier to parse with the simple rule that the first "and" divides it. The ambiguity is nonetheless a black mark against the syntax.