Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.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.109 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.79; '*S*': 0.00; 'subject:Python': 0.06; 'subject:language': 0.09; 'useless': 0.09; 'cc:addr:python-list': 0.11; "can't.": 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'putting': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'characters': 0.30; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'lines': 0.31; '25,': 0.31; 'arts': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'text': 0.33; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'edge': 0.36; 'fun,': 0.36; 'should': 0.36; 'pm,': 0.38; 'anything': 0.39; 'wife': 0.60; 'tell': 0.60; 'new': 0.61; 'more': 0.64; 'between': 0.67; 'mar': 0.68; 'eight': 0.74; 'subject:this': 0.83; 'confusing': 0.84; 'hard.': 0.84; 'surname': 0.84; 'ban': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=yF4X9Gs5cER07ZQ5zbzVLmUeYgQJMwioLZSRMpE6MqM=; b=sk7wg1Y7xqJVXGYIIuZ6rE87W7y2m/iNLH2DKLZO0X5jPD/vwQOuQOmP5DarveX6+0 JHHKPoVNJw87dIFzKOWM1K/+mp5qxY0eRU9bXbHCW1cEp5twc7V1p0Oc0zERtIdX7/o7 fYY1dk5gH/X0U8EK/blLkC5YkoqVqh0p5IJjk92IXC6FN+SeXjaqTos7fZ3C3/fg4ns2 dEoz6KZBAK4B/qWSOUgpwsChPHL/jqMTAFX4JWHExiuxqmd98qeP088TJlWiEe98xITA 1L20qYwEeFb6F9QFAMicpdEr9o2V/tApnr+j6CsC7L14/Sxxz5tmjjGgkWIjojGd66Rp LtBQ== MIME-Version: 1.0 X-Received: by 10.68.235.6 with SMTP id ui6mr73649919pbc.45.1395713871311; Mon, 24 Mar 2014 19:17:51 -0700 (PDT) In-Reply-To: <5330df9e$0$29994$c3e8da3$5496439d@news.astraweb.com> References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <10101874-2995-4acd-9851-989603f052e3@googlegroups.com> <532d5bd9$0$29994$c3e8da3$5496439d@news.astraweb.com> <532fffaf$0$29878$c3e8da3$5496439d@news.astraweb.com> <5330df9e$0$29994$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 25 Mar 2014 13:17:51 +1100 Subject: Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 1395713879 news.xs4all.nl 2870 [2001:888:2000:d::a6]:42041 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68931 On Tue, Mar 25, 2014 at 12:45 PM, Steven D'Aprano wrote: > Programming is a skill, like writing iambic pentameter. Should liberal > arts courses ban the use of iambic pentameter by poets because some > people find it confusing and can't count syllables or tell the difference > between stressed and unstressed? (I know I can't. My wife despairs that I > am so useless at anything like poetry.) Iambic pentameter is hard. I know, I tried writing eight lines of it for my brother's wedding. (Okay, I was writing *acrostic* iambic pentameter, putting his wife's new surname down the left edge of the page, but still, it's pretty restrictive.) It's much more fun, I reckon, to write paragraphs of text roughly eighty characters across. Prosaic, I know.... ChrisA