Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.074 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'subject:Python': 0.06; 'string': 0.09; 'subject: [': 0.09; 'threads,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'unicode': 0.24; '(or': 0.24; "i've": 0.25; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'this.': 0.32; 'languages': 0.32; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'method': 0.36; 'received:209': 0.37; 'starting': 0.37; 'subject:]': 0.38; 'whatever': 0.38; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'mar': 0.68; 'walk': 0.74; 'subject:long': 0.84; 'was...': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=IhsAu/y0l8Afw16ZDsofTyQh/ytTijKWD8Y77in3RoE=; b=Q6nLY33sbltFUqvmH0k7c/U0BDXEAJYszNNPWWSDDBkcMqkfAEgLlbF+v9gWvBoR0d YO7K4eW71K8uNC19PVOLR3X7bZMS7KgQCoiD7C2xv8uB5tCTR4ZXAfKWAYN76PNARMlY hpNwkGZtkkgzZCycphE+DjDoWBAGLaHFOuKHuHE077eRK0ZfPIDtjpoLeC7ZVJ7i7+xc efZkmvYBHgQRQG1EGDHZQMoqEWpikAm9xXH3pDg2QCVm7qGvcaPlLo+OT+YAgBvW3xOZ ES0rf/ShjqEe9aIEaYxGeDdUX44zC39wxQEuIcfprDhJxSa2uDGFSh0WndknhtGi8Yu1 DWCQ== X-Received: by 10.52.177.163 with SMTP id cr3mr23591903vdc.94.1364486506716; Thu, 28 Mar 2013 09:01:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <51543f45$0$29998$c3e8da3$5496439d@news.astraweb.com> References: <0b779c80-4f50-4716-8c30-47755c15f304@m12g2000yqp.googlegroups.com> <5153a12d$0$29998$c3e8da3$5496439d@news.astraweb.com> <987c4bd9-0e5e-4387-9c78-1075a77d3c47@c6g2000yqh.googlegroups.com> <51543f45$0$29998$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Thu, 28 Mar 2013 10:01:06 -0600 Subject: Re: flaming vs accuracy [was Re: Performance of int/long in Python 3] To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364486514 news.xs4all.nl 6967 [2001:888:2000:d::a6]:59413 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42161 On Thu, Mar 28, 2013 at 7:01 AM, Steven D'Aprano wrote: > Any string method that takes a starting offset requires the method to > walk the string byte-by-byte. I've even seen languages put responsibility > for dealing with that onto the programmer: the "start offset" is given in > *bytes*, not characters. I don't remember what language this was... it > might have been Haskell? Whatever it was, it horrified me. Go does this. I remember because it came up in one of these threads, where jmf (or was it Ranting Rick?) was praising Go for just getting Unicode "right".