Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'algorithm': 0.04; 'perl,': 0.07; 'expression:': 0.09; 'moderator': 0.09; 'overflow': 0.09; 'url:blog': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'itself.': 0.14; 'confuse': 0.16; 'perl.': 0.16; 'referencing': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'stack': 0.19; '>>>': 0.22; 'example': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; "shouldn't": 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'posts': 0.26; 'certain': 0.27; 'header:In-Reply- To:1': 0.27; 'compared': 0.30; 'matching': 0.30; 'then.': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'that.': 0.31; '+0100,': 0.31; '>>>>': 0.31; "d'aprano": 0.31; 'peterson': 0.31; 'steven': 0.31; 'trivial': 0.31; 'url:06': 0.31; 'this.': 0.32; 'probably': 0.32; 'regular': 0.32; 'programmers': 0.33; 'comment': 0.34; 'problem': 0.35; 'agree': 0.35; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'himself': 0.36; 'possible': 0.36; 'seconds': 0.37; 'being': 0.38; 'sometimes': 0.38; 'anything': 0.39; 'url:01': 0.39; 'extremely': 0.39; 'expression': 0.60; 'solve': 0.60; 'most': 0.60; "you're": 0.61; "you'll": 0.62; 'july': 0.63; 'face': 0.64; 'teaching': 0.64; 'skip:\xe2 10': 0.65; 'design.': 0.68; 'sound': 0.68; 'subjectcharset:utf-8': 0.72; 'apart': 0.72; '8bit%:43': 0.74; 'jul': 0.74; 'cycles.': 0.84; 'or...': 0.84; 'hate': 0.91; 'mistake': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=SOQ5majiiyCFcYfzM31BFl6jGEI1k3Rix5Y84KwyT7E=; b=LKr6qzmElqPOz9omp6FIYyNqnF6XTYvNtV0CpM0kdpwTdSi9vVLkvwf7scwoZZ7/iT L3T2CY6yqf9tHxN46ULnbosfVDbd0gYD3DFElR4XcoEgRpM9cUSahzGrshpnln5EVK0I KBGC5Wx9/qi96F64Yqeg1DPk+BoSWwirb0hVeNkmA7PjOSt5DoCnxd3v4dtZfD4CpFDD CPQ4AsiIA+LizGdBr3CUNOpeuLPxGVBP57oS+o8evgcMvbtjWr6Kk1utB2XMRlUF60AA iJV4PsgFJwmktPVz2UGUeOdZhY0GFAB9npdOq9f2qHO4mQCLe1tKCF6elMw6k0FISF3q Erpg== X-Received: by 10.152.120.228 with SMTP id lf4mr15697518lab.65.1373478854241; Wed, 10 Jul 2013 10:54:14 -0700 (PDT) MIME-Version: 1.0 Sender: joshua.landau.ws@gmail.com In-Reply-To: <51dd96a8$0$9505$c3e8da3$5496439d@news.astraweb.com> References: <51dd22a6$0$11094$c3e8da3@news.astraweb.com> <51dd96a8$0$9505$c3e8da3$5496439d@news.astraweb.com> From: Joshua Landau Date: Wed, 10 Jul 2013 18:53:34 +0100 X-Google-Sender-Auth: kf1G3i4XHVjp0vXdxXCRpvVIMCw Subject: =?UTF-8?Q?Re=3A_Stack_Overflow_moderator_=E2=80=9Canimuson=E2=80=9D?= To: "Steven D'Aprano" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373478856 news.xs4all.nl 16009 [2001:888:2000:d::a6]:47481 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50385 On 10 July 2013 18:15, Steven D'Aprano wrote: > On Wed, 10 Jul 2013 16:54:02 +0100, Joshua Landau wrote: > >> On 10 July 2013 10:00, Steven D'Aprano wrote: >>> On Wed, 10 Jul 2013 07:55:05 +0000, Mats Peterson wrote: >>> >>>> A moderator who calls himself =E2=80=9Canimuson=E2=80=9D on Stack Over= flow doesn=E2=80=99t >>>> want to face the truth. He has deleted all my postings regarding >>>> Python regular expression matching being extremely slow compared to >>>> Perl. >>> >>> That's by design. We don't want to make the same mistake as Perl, where >>> every problem is solved by a regular expression: >>> >>> http://neilk.net/blog/2000/06/01/abigails-regex-to-test-for-prime- > numbers/ >>> >>> so we deliberately make regexes as slow as possible so that programmers >>> will look for a better way to solve their problem. If you check the >>> source code for the re engine, you'll find that for certain regexes, it >>> busy-waits for anything up to 30 seconds at a time, deliberately >>> wasting cycles. >> >> I hate to sound like this but do you realise that this is exactly what >> you're arguing for when saying that sum() shouldn't use "+=3D"? > > You're referencing an off-list conversation, which will probably confuse > most others reading this. > > I don't agree with that. Apart from one throw-away comment where I said > that sometimes it is handy to have a trivial example of an O(N**2) > algorithm for teaching purposes, I have never made any suggestion that > having sum(lists) be slow was a good thing in and of itself. I might be misattributing posts then. Or... YOU'RE IN DENIAL! Who wins? You decide!