Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.101 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.00; 'perl,': 0.07; 'expression:': 0.09; 'moderator': 0.09; 'overflow': 0.09; '~ethan~': 0.09; 'url:blog': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'perl.': 0.16; 'skip:0 40': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'stack': 0.19; '>>>': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; "shouldn't": 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'compared': 0.30; 'matching': 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; '>>>>': 0.31; "d'aprano": 0.31; 'peterson': 0.31; 'steven': 0.31; 'url:06': 0.31; 'skip:m 30': 0.32; 'regular': 0.32; 'url:python': 0.33; 'guess': 0.33; 'programmers': 0.33; 'problem': 0.35; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'himself': 0.36; 'url:listinfo': 0.36; 'possible': 0.36; 'url:org': 0.36; 'seconds': 0.37; 'being': 0.38; 'skip:& 10': 0.38; 'pm,': 0.38; 'anything': 0.39; 'url:01': 0.39; 'extremely': 0.39; 'changed': 0.39; 'url:mail': 0.40; 'expression': 0.60; 'solve': 0.60; "you're": 0.61; "you'll": 0.62; "you've": 0.63; 'july': 0.63; 'face': 0.64; 'skip:\xe2 10': 0.65; 'design.': 0.68; 'sound': 0.68; 'subjectcharset:utf-8': 0.72; '8bit%:43': 0.74; 'jul': 0.74; 'cycles.': 0.84; 'ethan': 0.84; 'furman': 0.84; 'hate': 0.91; 'joel': 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:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6M4UdJO8JlzXdJgP8mX06HySPapnf4q5XneFzzjKEOY=; b=ynhX9euNb93WSCLG0eV1Yp85C9gQSD44Nd6dOkvcmnBEN3Y7abPTV5npeR66ds0Tf0 PxiyW+am85EDlAdF1Y2kTuwOLoRSgpud8tdSNEdUEVTlx0LjgelvvXNGfPwQby4MbbuS SGm69HGYwZEh0GwtFvsUM0ztCSZcr1dy+nWdV6B2RHEFig8scUPKVztDW/hcB2lLf0eL Mr9l3McRuhaId6JlIRYqTSTIncM029MYFpaPJtld3uSuV4fo3sAFVtH2+RRZYKrzfu/w tUSMvm9SS5zeYJM/hFd67NDY03+BTjGLzcMVrcD8NwZXDB+2rEEhzyeSlsFw7abrg+m7 +Smg== MIME-Version: 1.0 X-Received: by 10.52.17.115 with SMTP id n19mr16067647vdd.113.1373473952691; Wed, 10 Jul 2013 09:32:32 -0700 (PDT) In-Reply-To: <51DD8953.60709@stoneleaf.us> References: <51dd22a6$0$11094$c3e8da3@news.astraweb.com> <51DD8953.60709@stoneleaf.us> Date: Wed, 10 Jul 2013 12:32:32 -0400 Subject: =?UTF-8?Q?Re=3A_Stack_Overflow_moderator_=E2=80=9Canimuson=E2=80=9D?= From: Joel Goldstick To: Ethan Furman Content-Type: multipart/alternative; boundary=bcaec502dc260f2b3204e12ad30d Cc: "python-list@python.org" 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: 125 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373473954 news.xs4all.nl 15883 [2001:888:2000:d::a6]:36924 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50379 --bcaec502dc260f2b3204e12ad30d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable call your mom On Wed, Jul 10, 2013 at 12:18 PM, Ethan Furman wrote: > On 07/10/2013 08:54 AM, 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 wastin= g >>> 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"? >> > > my_obj =3D SomeKoolClass() > my_obj.modify_in_some_kool_**way() > new_result =3D sum([SKC1, SKC2, SKC3], my_obj) > > Guess what? You've just changed my_obj. > > -- > ~Ethan~ > -- > http://mail.python.org/**mailman/listinfo/python-list > --=20 Joel Goldstick http://joelgoldstick.com --bcaec502dc260f2b3204e12ad30d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
call your mom


=
On Wed, Jul 10, 2013 at 12:18 PM, Ethan Furman <= span dir=3D"ltr"><ethan@stoneleaf.us> wrote:
On 07/10/2013 08:54 AM, Jo= shua Landau wrote:
On 10 July 2013 10:00, Steven D'Aprano <steve@pearwood.info> 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 Overflow = 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, w= here
every problem is solved by a regular expression:

http://neilk.net/blog/2000/06/01/abiga= ils-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&= quot;?

my_obj =3D SomeKoolClass()
my_obj.modify_in_some_kool_way()
new_result =3D sum([SKC1, SKC2, SKC3], my_obj)

Guess what? =C2=A0You've just changed my_obj.

--
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list



--
--bcaec502dc260f2b3204e12ad30d--