Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.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.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'perl,': 0.07; 'string': 0.09; 'expression:': 0.09; 'moderator': 0.09; 'overflow': 0.09; 'url:blog': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'language,': 0.12; '(there': 0.16; '3.3,': 0.16; 'introduces': 0.16; 'non-ascii': 0.16; 'perl.': 0.16; 'to:addr:pearwood.info': 0.16; "to:name:steven d'aprano": 0.16; 'unicode.': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'stack': 0.19; 'memory': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; "shouldn't": 0.24; 'text,': 0.24; 'unicode': 0.24; 'people,': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'compared': 0.30; 'matching': 0.30; 'see,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'posting': 0.31; 'too.': 0.31; "d'aprano": 0.31; 'peterson': 0.31; 'steven': 0.31; 'url:06': 0.31; 'regular': 0.32; 'everyone': 0.33; 'programmers': 0.33; 'problem': 0.35; 'problem.': 0.35; 'operations': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'himself': 0.36; 'possible': 0.36; 'should': 0.36; 'changing': 0.37; 'effort': 0.37; 'seconds': 0.37; 'being': 0.38; 'anything': 0.39; 'url:01': 0.39; 'extremely': 0.39; 'how': 0.40; 'remove': 0.60; 'expression': 0.60; 'is.': 0.60; 'solve': 0.60; 'french': 0.61; "you're": 0.61; 'back': 0.62; 'times': 0.62; "you'll": 0.62; 'july': 0.63; 'our': 0.64; 'face': 0.64; 'skip:\xe2 10': 0.65; 'design.': 0.68; 'sound': 0.68; 'subjectcharset:utf-8': 0.72; '8bit%:43': 0.74; 'carefully': 0.74; 'jul': 0.74; 'obvious': 0.74; 'discovered': 0.83; 'cycles.': 0.84; 'spite': 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=kyrp9/FdMF96i3STAFzEtqaSbRDFlK/GwSACpAiYFGU=; b=lfI4r4bI4BfBbpolB4I/VOE0F9m69Qt6NSF/Q22y1/d2jmWeVhak2SbqvhXkbtFWtf mQZe9SHMgdbdVvA+IZJ0pGBCaP5hlNlML34D//bGJqDfUTEMTa4foQ+I4RozCWAk9Mcj 0k/JTEJdCELdddRQPd73VcyNbvnrbZrI7tOnK05Wd4VRQ5SFtQ1QL05lGtyVK7RdlOhs 0DtVz6OErUWLdbPB5gK1wz9QA+Prk5xQs1HxjIlBIw9fdwE3z34e1caMwul5gWK3WnUQ K9oeHEYw2UO8T8nrlmodqoxxZOQkeNnZMR50N+kIhVWCRhpBsAh/lX0GF4TELOn0lZ2Y 3JsQ== X-Received: by 10.112.5.199 with SMTP id u7mr15375863lbu.67.1373471682358; Wed, 10 Jul 2013 08:54:42 -0700 (PDT) MIME-Version: 1.0 Sender: joshua.landau.ws@gmail.com In-Reply-To: <51dd22a6$0$11094$c3e8da3@news.astraweb.com> References: <51dd22a6$0$11094$c3e8da3@news.astraweb.com> From: Joshua Landau Date: Wed, 10 Jul 2013 16:54:02 +0100 X-Google-Sender-Auth: ClP-HRn6CqtGEHJ4_bJ5EJ8YauA 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: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373471684 news.xs4all.nl 15997 [2001:888:2000:d::a6]:51747 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50369 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 Overfl= ow 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"? (There is no spite in the above sentence, but it sounds like there is. There is however no way obvious to me to remove it without changing the sentence's meaning.) > The same with Unicode. We hate French people, And for good damn reason too. They're ruining our language, =C3=A1 mon avis= . > you see, and so in an > effort to drive everyone back to ASCII-only text, Python 3.3 introduces > some memory optimizations that ensures that Unicode strings work > correctly and are up to four times smaller than they used to be. You > should get together with jmfauth, who has discovered our dastardly plot > and keeps posting benchmarks showing how on carefully contrived micro- > benchmarks using a beta version of Python 3.3, non-ASCII string > operations can be marginally slower than in 3.2.