Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Pyhon 2.x or 3.x, which is faster? Date: Fri, 11 Mar 2016 16:36:06 +1100 Lines: 40 Message-ID: References: <56df6761$0$1588$c3e8da3$5496439d@news.astraweb.com> <56e25245$0$1606$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 4pt93AoVbEXnzMGLcI7XLwWADg7dhK9ezUtrL7nboKHA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'true,': 0.04; 'fixes': 0.05; 'bug.': 0.07; 'deny': 0.07; 'reason,': 0.07; 'cc:addr :python-list': 0.09; 'cursor': 0.09; 'subject:which': 0.09; 'wrong,': 0.09; 'bug': 0.10; 'ignore': 0.14; 'properly': 0.15; '*no*': 0.16; '2016': 0.16; 'bug,': 0.16; 'buggy': 0.16; 'char,': 0.16; 'dismiss': 0.16; 'frankly': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hypothetical': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'segfault': 0.16; 'text?': 0.16; 'wrote:': 0.16; 'later': 0.16; 'char': 0.18; 'fixed.': 0.18; 'instance,': 0.18; "shouldn't": 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'preferred': 0.20; '(the': 0.22; 'do.': 0.22; 'text,': 0.22; 'leave': 0.23; 'bit': 0.23; 'patch': 0.24; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'bugs': 0.27; 'fri,': 0.27; 'handling': 0.27; 'room': 0.27; 'switch': 0.27; 'message-id:@mail.gmail.com': 0.27; 'back.': 0.27; 'correct': 0.28; "i'd": 0.31; 'probably': 0.31; 'certain': 0.31; "can't": 0.32; 'useful': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'editor': 0.34; 'except': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'text': 0.35; 'done': 0.35; 'feed': 0.35; 'unicode': 0.35; 'something': 0.35; "isn't": 0.35; 'supports': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'received:209.85': 0.36; '(and': 0.36; 'data.': 0.36; 'mode': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'support,': 0.37; 'received:209': 0.38; 'wrong': 0.38; 'anything': 0.38; 'mean': 0.38; 'means': 0.39; 'goes': 0.39; 'data': 0.39; 'along': 0.39; 'rather': 0.39; 'where': 0.40; 'still': 0.40; 'hang': 0.60; 'programs': 0.62; 'more': 0.63; 'necessarily': 0.63; 'world': 0.64; 'between': 0.65; 'capable': 0.65; 'mar': 0.65; 'combining': 0.66; 'improvement.': 0.66; 'programs,': 0.72; 'arabic': 0.84; 'chrisa': 0.84; 'post,': 0.84; 'to:none': 0.91; 'attitude': 0.91; 'support:': 0.91; 'acknowledge': 0.93 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:cc; bh=eT9pILdl2FnkDbTxKw3nk9AiXYbhVkE3fI8H7rDYbuk=; b=kuBa3Ir9b8dkdZaGdw9Wz+arelRvj1xJ44fKzPslAqyrU4nTGHrgfhsJy7SiDh353A InbkT/i27rbld1v0lEzLy4tL1EHrsi1/ciCddy5O267Imu6rDoTKNR+t+sDBU/dr+eII /JWWsn4mpaPHOW0rOimXD/4zMSxix5u40JLuoQov4IoBjhyY1bc4oTcvLEFIJwB/K2GY NW74qsTRUxSf68oEIk1RbCXSEcJvEkwo6Gr3m+gOqsms7Zg5iM4LmwMq/xClvwt2GSCE ErnB2kPA/cD75JCzYHtPjTMhO3hakAUZgtMPkaOPFW3texycUu2+T0SD33Rxa0lJ69QX Rb+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=eT9pILdl2FnkDbTxKw3nk9AiXYbhVkE3fI8H7rDYbuk=; b=KT6rzND+9am/VTPV8yFWmfSeuJ1La5pLv/7dZ3RCNdSlHGJj+7Waakbs+LkO2FkoTz adISqdVriG8V5hg3tg4Czx6aL1sRLg0sYaKN/DA7wWiPUMcd5FNbVRnc8+At5qRpco3i Qu7zUvVK6iJ1mznWQSYxNY+hsA6T+YPcQakfnlgimc07lCy5aWAcDS0wLLv8zRIUlmXp iCTbzPcBt4XgKwpmU+o1bexlnGSv86fZwQzA0lmLe7PF8qLZJHjJFh/b54n+lEHTrhbN qxi8RpwSALa8mX93Xsl3Jvpvc0pPVtoLl2mi89OFX5EhlQK1rGb8yQPW75qMe1yWZKDd 5z1A== X-Gm-Message-State: AD7BkJKoP5nMLCRdtcM/CM/su/gFWGjKIKGZePfw46kLMyIj29C+AT9Z8r/gAfgmOlhUXphjSGvklg5lMYwgVw== X-Received: by 10.50.43.168 with SMTP id x8mr758013igl.92.1457674566615; Thu, 10 Mar 2016 21:36:06 -0800 (PST) In-Reply-To: <56e25245$0$1606$c3e8da3$5496439d@news.astraweb.com> 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:104584 On Fri, Mar 11, 2016 at 4:06 PM, Steven D'Aprano wrote: > That may be true, but that doesn't mean that there isn't still room in the > world for dumb, just-barely Unicode capable clients. And frankly I would > rather partial Unicode support than buggy Unicode support: I have a text > editor which would be my preferred editor of choice except it has an > annoying bug where it will (seemingly at random) switch to Right-To-Left > mode for no reason, and then be impossible to switch back. Since I have > *no* use for RTL, I would rather an editor that doesn't support that than > one that supports it buggily. What would this hypothetical "doesn't support RTL" editor do if given Arabic or Hebrew text? I'd rather it support it buggily (and acknowledge that those are bugs) than try to render the characters in a completely wrong way. Also, you trimmed off the last bit of my original post, which probably should have had more emphasis: [I said:] > You can't ignore this, although you might be able to leave > full support for later - but it's a bug until you do. You don't necessarily have to have perfect support for everything straight away; what you DO need is a mental attitude of "perfection means full Unicode support, and anything else is a bug". Bugs hang around in programs for a long time, but removing them is always an improvement. So, for instance, you might not properly support RTL text, but if a patch comes along that fixes RTL text, you would not dismiss it as "we've done it this way for years, so it's fine" - it's a bug that can be fixed. Same goes for correct handling of combining characters (the cursor shouldn't be able to go between a base char and a combining char, for instance); if you get something wrong, it's a bug, same as any other bug. There most definitely is room in the world for "just-barely Unicode capable" programs, just as there's room in the world for programs that segfault when you feed them certain types of invalid data. The program can still be useful even though it has bugs in it. Nobody would deny that segfaulting on invalid data is a flaw; and imperfect Unicode support should be treated the same way. ChrisA