Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Ethan Furman Newsgroups: comp.lang.python Subject: Re: sobering observation, python vs. perl Date: Thu, 17 Mar 2016 11:21:54 -0700 Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de ayg3Blby1Bja0Mmlglt/pQ6HJvvsuNf0hYYxdeJ7OJ1Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'mode:': 0.07; 'see.': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'mode,': 0.09; 'res': 0.09; 'python': 0.10; 'subject:python': 0.14; 'thu,': 0.15; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'yup,': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'python"': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; '-0700,': 0.29; 'mode.': 0.29; 'perl': 0.29; '~ethan~': 0.29; "i'm": 0.30; 'print': 0.30; "i'd": 0.31; 'point': 0.33; "skip:' 20": 0.34; 'add': 0.34; 'could': 0.35; 'something': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thought': 0.37; 'no,': 0.38; 'to:addr:python.org': 0.40; 'your': 0.60; 'charset:windows-1252': 0.62; 'mar': 0.65; 'subject:. ': 0.67; 'useful.': 0.72; 'smith': 0.76; 'as:': 0.79; 'hammer': 0.84; 'ethan': 0.91; 'furman': 0.91 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105134 On 03/17/2016 10:35 AM, Charles T. Smith wrote: > On Thu, 17 Mar 2016 10:26:12 -0700, Ethan Furman wrote: > >> On 03/17/2016 09:36 AM, Charles T. Smith wrote: >> >>> Yes, your point was to forgo REs despite that they are useful. >>> I could have thought the search would have been better as: >>> >>> 'release[-.:][Rr]eq' >>> >>> or something else ... you're in a "defend python at all costs!" mode. >> >> No, I'm in the "don't try to write in Python" mode, and >> "don't use 10lb sledge when 6oz hammer will do" mode: > > > Yes, fine. > > I'd only like to add that the perl numbers might also improve > if the print in the loop were postponed. Yup, might! Try it and see. -- ~Ethan~