Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'encoding': 0.05; 'subject:Python': 0.06; 'indexing': 0.07; 'utf-8': 0.07; 'string': 0.09; 'implements': 0.09; 'subject: [': 0.09; 'python': 0.11; 'programs.': 0.14; 'random': 0.14; 'does,': 0.16; 'elsewhere.': 0.16; 'encoding.': 0.16; 'from:addr:ian': 0.16; 'preserve': 0.16; 'preserving': 0.16; 'received:172.20.0': 0.16; 'received:208.97.132.81': 0.16; 'subject: \n ': 0.16; 'thought.': 0.16; 'unicode,': 0.16; 'unicode.': 0.16; 'do,': 0.16; 'wrote:': 0.18; "python's": 0.19; 'examples': 0.20; 'example': 0.22; 'coding': 0.22; 'header:User-Agent:1': 0.23; 'certainly': 0.24; 'unicode': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'software,': 0.31; 'usually': 0.31; 'font': 0.31; 'microsoft,': 0.31; 'received:208.97': 0.31; 'received:208.97.132': 0.31; 'received:66.33': 0.31; 'received:66.33.216': 0.31; 'received:66.33.216.122': 0.31; 'received:dreamhost.com': 0.31; 'received:g.dreamhost.com': 0.31; 'received:hapkido.dreamhost.com': 0.31; 'shoot': 0.31; 'stuff': 0.32; 'charge': 0.33; 'problem': 0.35; 'received:66': 0.35; 'agree': 0.35; 'beyond': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; 'done': 0.36; 'possible': 0.36; 'should': 0.36; 'so,': 0.37; 'performance': 0.37; 'subject:]': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'list,': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'ian': 0.60; 'received:172.20': 0.60; 'most': 0.60; 'range': 0.61; 'received:208': 0.61; "you're": 0.61; 'maximum': 0.63; 'compliant': 0.68; 'nobody': 0.68; 'wish': 0.70; 'adobe,': 0.84; 'analog': 0.84; 'characters,': 0.84; 'confusing': 0.84; 'examples.': 0.84; 'subject:long': 0.84; 'tex': 0.84; 'understand,': 0.84; 'engines,': 0.93; 'mistakes': 0.93 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=feete.org; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=feete.org; bh=4ii+KZJ XjZ/YgoqlvMEs2WOTISQ=; b=eqBdKbOUv0aok4yJCBMQ+Czw9ZZwD2hS8EoRTn0 0+hVkG4Wzn3cURKvv2awPF8XKjznFKln9G4GZ8PqnqWC14ESHe1wPh4/MXEvqtkX NlRn7Hj5PM/w6HFfsiQUtui8fPqeU8lfnOQr8IHKuGAw7W5IupUDGkU9SAuBFcKt T9G0= Date: Thu, 28 Mar 2013 09:36:19 +0000 From: Ian Foote User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: python-list@python.org Subject: Re: flaming vs accuracy [was Re: Performance of int/long in Python 3] 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> In-Reply-To: <987c4bd9-0e5e-4387-9c78-1075a77d3c47@c6g2000yqh.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364463394 news.xs4all.nl 6897 [2001:888:2000:d::a6]:33405 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42105 On 28/03/13 09:03, jmfauth wrote: > The problem is elsewhere. Nobody understand the examples > I gave on this list, because nobody understand Unicode. > These examples are not random examples, they are well > thought. > > If you were understanding the coding of the characters, > Unicode and what this flexible representation does, it > would not be a problem for you to create analog examples. > > So, we are turning into circles. > > This flexible representation succeeds to cumulate in one > shoot all the design mistakes it is possible to do, when > one wishes to implements Unicode. > > Example of a good Unicode understanding. > If you wish 1) to preserve memory, 2) to cover the whole range > of Unicode, 3) to keep maximum performance while preserving the > good work Unicode.org as done (normalization, sorting), there > is only one solution: utf-8. For this you have to understand, > what is really a "unicode transformation format". > > Why all the actors, active in the "text field", like MicroSoft, > Apple, Adobe, the unicode compliant TeX engines, the foundries, > the "organisation" in charge of the OpenType font specifications, > are able to handle all this stuff correctly (understanding + > implementation) and Python not?, I should say this is going > beyond my understanding. > > Python has certainly and definitvely not "revolutionize" > Unicode. > > jmf > You're confusing python's choice of internal string representation with the programmer's choice of encoding for communicating with other programs. I think most people agree that utf-8 is usually the best encoding to use for interoperating with other unicode aware software, but as a variable-length encoding it has disadvantages that make it unsuitable for use as an internal representation. Specifically, indexing a variable-length encoding like utf-8 is not as efficient as indexing a fixed-length encoding. Regards, Ian F