Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'instance,': 0.05; 'suppose': 0.05; 'subject:Python': 0.05; 'compute': 0.09; 'parsing': 0.09; 'php,': 0.09; 'utf-8': 0.09; 'am,': 0.12; 'discussions': 0.12; '16,': 0.15; 'extensions': 0.15; 'dwarfed': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inevitably': 0.16; 'massively': 0.16; 'roy': 0.16; "someone's": 0.16; 'wrote:': 0.18; 'received:209.85.210.174': 0.21; 'received :mail-iy0-f174.google.com': 0.21; 'input': 0.22; 'header:In-Reply- To:1': 0.22; 'do,': 0.25; 'scale': 0.25; 'separate': 0.28; '(this': 0.28; 'message-id:@mail.gmail.com': 0.29; 'topic': 0.30; "it'd": 0.30; 'file.': 0.31; "won't": 0.33; 'fri,': 0.34; 'file': 0.34; 'running': 0.34; 'then.': 0.34; 'to:addr:python-list': 0.35; 'bound': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'not,': 0.38; 'received:209.85': 0.38; 'doing': 0.38; 'processing': 0.39; 'received:209': 0.39; 'might': 0.40; 'to:addr:python.org': 0.40; 'easy': 0.60; 'worth': 0.61; 'talking': 0.62; 'ever': 0.64; "we've": 0.64; 'us,': 0.71; 'boss': 0.77; '"we\'re': 0.84 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 :content-type:content-transfer-encoding; bh=EHlZP70lv/RXUzNIBNPeM7IXIeK8wFrMUPq30UBPrg4=; b=I/DVJHVOfCAmSmpPxoVmtm23QLHhKiv7RVVYgzLICRFihLYiPTKnSHJkrpduiricRV sVEa85KNseIU18VCIw/QyeFIV+L3WDmJEYZJtWYWVRkcBhVfl8mF/CTwyGQdfbBEvINy Yh/Kz5Egqrmu4oVTFARW5L8LaY+XUw5P3DNAtRyjKXMta63CLy/1MPwd54ZDWLAjvxpB mhRPksvUeBYYN3juhP8YbCfcs+EOsw2U2JCdGCnVM6EUEq/wcDFn+SF2NnCf0yrqjxPQ S+0liuDulOYCZXbYZgj506IJQGBH7MHtwZ848dbfjTOBWPr6yB/XoMXYE5XCVOzzDi1m L0bQ== MIME-Version: 1.0 In-Reply-To: References: <4f612b19$0$1379$4fafbaef@reader2.news.tin.it> <8e72d74f-c844-4de3-8a37-f6b1fdc2291f@y27g2000yqy.googlegroups.com> <50e9ceec-40f1-4ead-b2b6-87328b30d084@ow8g2000pbc.googlegroups.com> <4f61c828$0$1390$4fafbaef@reader2.news.tin.it> <4f61d221$0$1375$4fafbaef@reader2.news.tin.it> <4f61d9a2$0$1377$4fafbaef@reader2.news.tin.it> <4f61f9bf$0$1381$4fafbaef@reader2.news.tin.it> Date: Fri, 16 Mar 2012 02:27:31 +1100 Subject: Re: Python is readable From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331825254 news.xs4all.nl 6862 [2001:888:2000:d::a6]:51397 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21688 On Fri, Mar 16, 2012 at 2:14 AM, Roy Smith wrote: > While it's nice to know that we've got the ability to write extensions > in C, not once have we ever felt the need. =A0I suppose if you're running > a CPU-bound application, that might not be the case, but surprisingly > few applications really are compute bound these days. My boss and I have these discussions now and then. A topic of performance comes up, and we debate whether or not, for instance, it's worth doing a separate check of an input file to see if it's properly-formed UTF-8 before parsing it (this is in PHP, or it'd be easy - just do a UTF-8 decode and work with Unicode). The debate ended, as they inevitably do, with "We're talking about a file that someone's uploaded to us, so it won't matter". Whatever processing we do is massively dwarfed by network time, and both scale linearly with the size of the file. ChrisA