Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.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.032 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'rejected': 0.04; 'exec': 0.07; 'hettinger': 0.07; '(it': 0.09; 'specific.': 0.09; 'cc:addr :python-list': 0.15; 'alex23': 0.16; 'patch,': 0.16; 'subject:() ': 0.16; 'thought.': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'seems': 0.19; 'cc:no real name:2**0': 0.21; 'pointed': 0.21; 'so.': 0.21; 'obviously': 0.23; 'name?': 0.23; 'referring': 0.23; 'header:In- Reply-To:1': 0.23; 'cc:2**0': 0.25; 'saying': 0.25; 'somebody': 0.27; 'url:mailman': 0.27; 'random': 0.28; '(and': 0.28; "wasn't": 0.28; 'cc:addr:python.org': 0.29; 'message-id:@mail.gmail.com': 0.29; 'subject:?': 0.31; 'nov': 0.31; 'pm,': 0.31; 'url:listinfo': 0.32; "can't": 0.32; "won't": 0.32; 'actually': 0.33; 'it.': 0.33; 'instead': 0.33; 'there': 0.33; 'too': 0.33; 'idea': 0.34; 'limitations': 0.34; 'posters': 0.34; 'received:209.85.161': 0.35; 'url:python': 0.35; 'anything': 0.36; 'something': 0.36; 'uses': 0.36; 'skip:" 10': 0.36; 'like,': 0.36; 'opposed': 0.36; 'thread': 0.36; 'reasons': 0.37; 'but': 0.37; 'think': 0.37; 'patch': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'difficult': 0.38; "it's": 0.39; 'why': 0.39; 'subject:: ': 0.39; 'received:209': 0.40; 'did': 0.40; 'really': 0.40; 'providing': 0.60; 'your': 0.61; 'him,': 0.62; '2011': 0.62; 'full': 0.62; 'alternative': 0.63; 'believe': 0.64; 'ever': 0.65; 'share': 0.66; 'respect': 0.66; 'deal.': 0.67; 'proud': 0.70; 'woo': 0.84; 'story.': 0.95 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:content-transfer-encoding; bh=88a2yM9FEHj0a6woK427VNXhPGssUZMFvtWyRKjPA4Y=; b=KbhUHwdvPmpy1rxa99aGaijFHocoht+feQ3DNBeaBM5djAd3lNTR3qjNVfyx+6Lz/H bDQv/DabIyHoB1KbYfnPlD4oXSuTRt9pdt3vru96UJ5FPfwczRryBNO4j0ZxBZMLREfR JWOADii0XBA/3iaiknrSZeZguZeFinacLtnGc= MIME-Version: 1.0 In-Reply-To: <2f026694-0905-49f8-bcae-7e4d55df5d49@z22g2000prd.googlegroups.com> References: <436fb6a3-1075-45a6-8f93-5612d050b11a@q35g2000prh.googlegroups.com> <4eb9e9c2$0$29988$c3e8da3$5496439d@news.astraweb.com> <4ebb08b6$0$29970$c3e8da3$5496439d@news.astraweb.com> <2f026694-0905-49f8-bcae-7e4d55df5d49@z22g2000prd.googlegroups.com> From: Devin Jeanpierre Date: Wed, 9 Nov 2011 23:40:25 -0500 Subject: Re: all() is slow? To: alex23 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 71 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1320900070 news.xs4all.nl 6886 [2001:888:2000:d::a6]:55377 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15527 > (And it's really not a good idea to be proud of your > ignorance...) I wasn't bragging. > But you're happy to accept the opinions of random posters saying "exec > is evil"? [...] > As opposed to your in-depth critique? [...] > No, instead you have a thread full of people happy to criticise > something for which they're providing no alternative implementation. > You can't exactly say _why_ it's bad, other than other people have > echoed it, but you won't actually do anything about it. I said it was bad because I found it difficult to read and it was "weird". I also mentioned that it's conceivable that it has security flaws, but that's not as big a deal. I believe I also said that it was bad because it resulted in """arbitrary""" limitations in functionality. So, yes, I did say why it's bad, and it's not just because other people say so. My reasons are weak, but that's a different story. I also mentioned the alternative implementation, which uses a dict. There was even already a patch submitted to make namedtuple work this way, so I don't think I had to be too specific. R. Hettinger rejected this patch, which was what I was referring to when I was referring to handwaviness. So, no. > Just as I thought. Woo condescension. Devin On Wed, Nov 9, 2011 at 10:50 PM, alex23 wrote: > On Nov 10, 11:26=C2=A0am, Devin Jeanpierre wrote= : >> I don't really know anything about him or why people respect him, so I >> have no reason to share your faith. > > But you're happy to accept the opinions of random posters saying "exec > is evil"? (And it's really not a good idea to be proud of your > ignorance...) > >> Like, why can't "--" be a name? > > Why would you ever want it to be? > >> I don't like the use of exec, and I don't like the justification (it >> seems handwavy). > > As opposed to your in-depth critique? > >> I pointed this out in a thread full of people saying >> "never EVER use exec this way", so it's obviously not just me that >> thinks this is awful. > > No, instead you have a thread full of people happy to criticise > something for which they're providing no alternative implementation. > You can't exactly say _why_ it's bad, other than other people have > echoed it, but you won't actually do anything about it. > >> I think somebody will read it and think this is a good idea. > > Just as I thought. > -- > http://mail.python.org/mailman/listinfo/python-list >