Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3a.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'filter,': 0.09; 'lawrence': 0.09; 'subject:language': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '"a"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'library': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'issue,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'then.': 0.30; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '25,': 0.31; 'ago': 0.33; 'there,': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'library.': 0.36; 'ago.': 0.61; 'decided': 0.64; 'mar': 0.68; 'subject:this': 0.83; '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=3eFrGDsFiixvowbn2NncnatbJl8rErEVIao4xzdJcas=; b=gsv746oGYdIM0KQ/vpoys7WDtGq5NpBApWXTwv9O2Q8HsHvQhHo1oIWfe91LsxW6Cq WMPn7RITrT+92FjTJ6XbmE56Qd/ajDhn3Cf0YxqNXtb9VkbZ0pXgua0NU4YjgQxsYvYj gCJZlJm1fTNpRq4TpBUPgkv8L0WLvcGPSX6PhJn1HcnQCsDy539s/8P6Pwe9Hsz6HXR/ HQT1O48d66EIy26UDg8OIQpRb6igiva0Ihe8TWIBpe2b1Xfc4Xq4kvYPVnY+E0eDdjQL HTmLBjatmMnQ+a2UHYdfekomdFaHTRNLq01CLhWXUyjWOVkwsBBHQYo0PeMvPPMwZkuJ Zbyg== MIME-Version: 1.0 X-Received: by 10.68.200.74 with SMTP id jq10mr4161173pbc.169.1395690353148; Mon, 24 Mar 2014 12:45:53 -0700 (PDT) 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> Date: Tue, 25 Mar 2014 06:45:53 +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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395690355 news.xs4all.nl 2882 [2001:888:2000:d::a6]:37207 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68899 On Tue, Mar 25, 2014 at 6:13 AM, Mark Lawrence wrote: >> That was "a" proposal for 3000. Its there, but its not on the >> built-ins; ie., you have to import it. The confusion: why reduce, why >> not filter, nor map? {rhetorical} > > > So it is in the standard library then. And I'm not confused, seeing this > must have been decided years ago as Python 3 was released some five years > ago. Terminology issue, is all. It's not in the builtins, but it is in the standard library. ChrisA