Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'argument': 0.05; 'subject:Python': 0.06; 'lawrence': 0.09; 'library?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'so?': 0.09; 'subject:language': 0.09; 'python': 0.11; 'language.': 0.14; "guido's": 0.16; 'lambda': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'language': 0.16; 'wrote:': 0.18; 'library': 0.18; 'examples': 0.20; 'programming': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; '---': 0.24; 'question': 0.24; "i've": 0.25; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'subject:list': 0.30; '(although': 0.31; 'another': 0.32; 'copying': 0.34; 'there': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'free': 0.61; 'gone': 0.61; 'viruses': 0.61; 'protection': 0.63; 'real': 0.63; 'our': 0.64; 'interest': 0.64; 'provide': 0.64; 'antivirus': 0.68; 'fact,': 0.69; 'subject:this': 0.83; 'confusion.': 0.84; 'hassle': 0.84; 'received:2': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list) Date: Mon, 24 Mar 2014 09:58:58 +0000 References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <10101874-2995-4acd-9851-989603f052e3@googlegroups.com> <532d5bd9$0$29994$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-198-214.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: X-Antivirus: avast! (VPS 140324-0, 24/03/2014), Outbound message X-Antivirus-Status: Clean 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395655163 news.xs4all.nl 2835 [2001:888:2000:d::a6]:53848 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68860 On 24/03/2014 05:52, Mark H Harris wrote: > > How so? Read Guido's argument above. Another way to answer this > question is that I have been programming with Python for almost a decade > and I've not used lambda. In fact, I have gone out of my way to NOT use > lambda because I am fully aware that the BDFL hates it. Reduce is no > longer in the standard library (although you can import it) and there > are equally good ways to do what lambda was designed for without the > hassle nor confusion. > Where do you get reduce from if it's not in the standard library? As for lambda I've no real interest in it, other than when copying examples where it's used to (say) provide a key function. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com