Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed4a.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.061 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'subject:Python': 0.06; 'subject:language': 0.09; '24,': 0.16; 'lambda': 0.16; 'subject: \n ': 0.16; 'language': 0.16; 'wrote:': 0.18; 'example': 0.22; 'mon,': 0.24; 'question': 0.24; 'mention': 0.26; 'header:In-Reply- To:1': 0.27; 'specifically': 0.29; 'feature': 0.29; 'topic': 0.29; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'asks': 0.31; 'another': 0.32; 'received:google.com': 0.35; 'really': 0.36; 'similar': 0.36; 'somebody': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'providing': 0.61; 'first': 0.61; 'great': 0.65; 'mar': 0.68; 'behavior': 0.77; 'subject:this': 0.83 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=f4lu25YS3YU4NoLq6wsfeYi4bw8tKiV/ai0OLE10BUI=; b=JuYLqJXwX7f6pipB6Db8e1bNpHv8ll4CkWaeNHCMuys3m3yxNcO+ge6MJCrMRRJ8cZ O4+03vJsgLXnmnfH11tSPeAd74Bqq1QHJyYI1dmTNCHGuEm7hN3cqc9mjnOz2/ZuwDzE LAq5Smvv8o7ZAWgY0qtgVvqpGXsBRKnp4JW1wQRMzvyg6DQDkB0rSS7/mzvjI168eMq1 /KaVS2PJPBcV/ccTe8852ebQ3SH6B/qabeqo+XNgoIc5L5eB5Q0Deg0USH1NXQar/kQj IRu89DSHfVG2Fv4erwoPb6nJ7B1u/lyYvF1pwR2AHomXcjrtLy7wMmBC+xn5r6K6owcc l4DQ== X-Received: by 10.66.141.144 with SMTP id ro16mr10761156pab.131.1395688415276; Mon, 24 Mar 2014 12:13:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <10101874-2995-4acd-9851-989603f052e3@googlegroups.com> <532d5bd9$0$29994$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Mon, 24 Mar 2014 13:12:54 -0600 Subject: Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list) 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395688754 news.xs4all.nl 2831 [2001:888:2000:d::a6]:51751 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68895 On Mon, Mar 24, 2014 at 12:58 PM, Mark H Harris wrote: > That is what we mean by confusing. Or another really great example is this > thread. Somebody asks about a language feature and somebody else helpfully > answers the question by providing them with a similar lambda!! That is not in fact how the topic of lambda arose in this thread. Rustom Mody brought up the binding behavior in a tangent specifically to complain about it, and that was the first mention of lambda in the thread.