Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'url:bugs': 0.05; 'exec': 0.07; 'hettinger': 0.07; 'python': 0.08; 'cc:addr:python-list': 0.15; 'stdlib.': 0.16; 'subject:() ': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'url:ccpgames': 0.16; 'url:hg': 0.16; 'url:blog': 0.17; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'raymond': 0.21; 'received:209.85.213.46': 0.23; 'received:mail-yw0-f46.google.com': 0.23; 'header:In-Reply-To:1': 0.23; 'cc:2**0': 0.25; "i'm": 0.26; 'url:mailman': 0.27; 'cc:addr:python.org': 0.29; 'message-id:@mail.gmail.com': 0.29; 'subject:?': 0.31; 'nov': 0.31; 'pm,': 0.31; 'tue,': 0.32; 'url:listinfo': 0.32; 'it.': 0.33; 'someone': 0.33; 'url:python': 0.35; 'steven': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; "i'd": 0.39; 'subject:: ': 0.39; 'received:209': 0.40; 'more': 0.60; '2011': 0.62; 'url:2011': 0.71; '-0500,': 0.84; 'url:28': 0.84; 'url:lib': 0.84; 'stupid': 0.91; 'suspicious': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=z31vtH/9qfNkIdzoYK8iuMP0hCEuOQMd1R3AybIE/MM=; b=nKr8P/Y/L7hQEdDyrqrUBqc4/Fxx067fDPm4aDDsic4pbZL383dGT3rccxRcM/1uYI 227//dVT135suKH/J2yvQrFyLa2s7MHJxQNRnBQnDVcoSKkuT3176AAV6MmWIPnAdIFY MDZxME3l3D5iugP8+MtMxqKSlw9sxHjdy//ts= MIME-Version: 1.0 In-Reply-To: <4eb9e9c2$0$29988$c3e8da3$5496439d@news.astraweb.com> References: <436fb6a3-1075-45a6-8f93-5612d050b11a@q35g2000prh.googlegroups.com> <4eb9e9c2$0$29988$c3e8da3$5496439d@news.astraweb.com> From: Devin Jeanpierre Date: Wed, 9 Nov 2011 18:01:16 -0500 Subject: Re: all() is slow? To: "Steven D'Aprano" Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1320879720 news.xs4all.nl 6849 [2001:888:2000:d::a6]:58414 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15516 > If it were someone other than Raymond Hettinger responsible for the use > of exec in namedtuple, I'd be a lot more suspicious of it. I'm not going to be less suspicious based on a name. It reads like insanity, and the justification was terrible. Devin On Tue, Nov 8, 2011 at 9:47 PM, Steven D'Aprano wrote: > On Tue, 08 Nov 2011 19:44:18 -0500, Devin Jeanpierre wrote: > >> We have that stupid exec trick in the Python stdlib. It has to die. >> >> http://hg.python.org/cpython/file/6bf07db23445/Lib/collections/__init__.py#l240 > > > http://bugs.python.org/issue3974 > http://blog.ccpgames.com/kristjan/2011/05/28/namedtuple-and-exec/ > > If it were someone other than Raymond Hettinger responsible for the use > of exec in namedtuple, I'd be a lot more suspicious of it. > > > > -- > Steven > -- > http://mail.python.org/mailman/listinfo/python-list >