Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'mess': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'splitting': 0.09; 'subject:python': 0.11; 'cleanly': 0.16; 'message- id:@dough.gmane.org': 0.16; 'readable': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'tend': 0.17; 'code.': 0.20; 'insert': 0.23; 'specifically': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'dan': 0.29; 'statements': 0.29; "i'm": 0.29; 'becomes': 0.30; 'from:addr:yahoo.co.uk': 0.32; 'skip:- 10': 0.32; 'print': 0.32; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'list': 0.35; 'doing': 0.35; 'received:org': 0.36; 'but': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'skip:u 10': 0.60; 'dead': 0.62; 'jul': 0.65; 'death': 0.71; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Linux shell to python Date: Tue, 31 Jul 2012 08:15:32 +0100 References: <1343631941.7199.YahooMailNeo@web193104.mail.sg3.yahoo.com> <1826E39D-43C1-4CEB-AEA2-133B95AC0B0B@barrys-emacs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-146-3-232.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-Antivirus: avast! (VPS 120731-0, 31/07/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343718923 news.xs4all.nl 6952 [2001:888:2000:d::a6]:34553 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26298 On 31/07/2012 02:20, Dennis Lee Bieber wrote: > On Mon, 30 Jul 2012 22:56:48 +0000, Dan Stromberg > declaimed the following in gmane.comp.python.general: > > >> Sigh, and I'm also not keen on multi-line list comprehensions, specifically >> because I think they tend to make less readable code. It also becomes a >> mess when you need to insert print statements to get some visibility into >> what's going on. > > Cleanly splitting the list-comp by > > [ result-computation > for-item-selection-clause > if-filter-clause ] > > isn't that unreadable... But anyone doing > > [ result- > -computation for-item- > -selection-clause if- > -filter- > -clause ] > > should be pecked to death by a dead parrot. > Any particular species? -- Cheers. Mark Lawrence.