Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.075 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.01; 'received:134': 0.05; 'subject:would': 0.07; 'lambda': 0.16; 'subject:key': 0.16; 'superfluous': 0.16; 'header:User-Agent:1': 0.23; 'header:In- Reply-To:1': 0.27; '>>>>': 0.31; 'subject:all': 0.32; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'fact': 0.38; 'to:addr:python.org': 0.39; 'skip:x 10': 0.40; 'expression': 0.60; 'email addr:gmail.com': 0.63; 'attention': 0.75; 'subject:Idea': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAIAAXdwlGGuA9G/2dsb2JhbABawyQEBAGBFYMYAQV4EQshFg8JAwIBAgEPNhMGAgKHeAMPsmoNS4gHjF2CbBaDSwOVWoFnhg6GEoUkgxE Date: Thu, 20 Jun 2013 12:45:27 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Idea for key parameter in all() builting, would it be feasible? References: <9150d9b7-e488-4f9f-beff-4a140bcc78f0@googlegroups.com> In-Reply-To: <9150d9b7-e488-4f9f-beff-4a140bcc78f0@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371725131 news.xs4all.nl 15970 [2001:888:2000:d::a6]:53610 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48784 Op 19-06-13 18:14, russ.pobox@gmail.com schreef: > >>>> all(map(lambda x: bool(x), xrange(10**9))) Since you already have your answer, I just like to get your attention to the fact the the lambda is superfluous here. Your expression above is equivallent to all(map(bool, xrange(10**9)))