Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'algorithm': 0.03; 'skip:[ 20': 0.03; 'memory.': 0.05; '21,': 0.07; 'ascii': 0.07; 'ok.': 0.07; 'scripts': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subset': 0.09; 'subject:python': 0.11; '(note': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'vowel': 0.16; 'wrote:': 0.17; 'unicode': 0.17; 'saying': 0.18; '>>>': 0.18; '(not': 0.20; 'earlier': 0.21; 'aspect': 0.22; 'keys': 0.22; 'lets': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'wrote': 0.26; '(see': 0.27; '----': 0.27; 'am,': 0.27; 'forgot': 0.27; 'header:X-Complaints-To:1': 0.28; '>>>>': 0.29; 'piece': 0.29; 'reduced': 0.29; 'lists': 0.31; 'from:addr:yahoo.co.uk': 0.32; 'asked': 0.33; 'to:addr:python-list': 0.33; 'table': 0.35; 'something': 0.35; 'received:org': 0.36; 'mark': 0.38; 'perform': 0.38; 'mean': 0.38; 'some': 0.38; 'performance': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'skip:u 10': 0.60; 'more': 0.63; 'within': 0.64; 'french': 0.64; 'charset:windows-1252': 0.65; 'compliant': 0.65; 'user,': 0.69; '"can': 0.84; 'collation': 0.84; 'courageous': 0.84; 'horrible': 0.84; '"it': 0.91; 'rusi': 0.91; 'sorry.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: "monty" < "python" Date: Sat, 23 Mar 2013 16:06:23 +0000 References: <987098b6-d79c-4597-b656-9b3e983740e8@z3g2000vbg.googlegroups.com> <5241e68d-c4b8-4616-b0dd-4c5457dfe3b7@l16g2000yqe.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-92-18-20-125.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: <5241e68d-c4b8-4616-b0dd-4c5457dfe3b7@l16g2000yqe.googlegroups.com> X-Antivirus: avast! (VPS 130311-2, 11/03/2013), Outbound message X-Antivirus-Status: Clean 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: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364054783 news.xs4all.nl 6952 [2001:888:2000:d::a6]:49336 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41743 On 23/03/2013 09:23, jmfauth wrote: > On 21 mar, 04:12, rusi wrote: >> On Mar 21, 12:40 am, jmfauth wrote: >> >>> ---- >> >>> Courageous people can try to do something with the unicode >>> collation algorithm (see unicode.org). Some time ago, for the fun, >>> I wrote something (not perfect) with a reduced keys table (see >>> unicode.org), only a keys subset for some scripts hold in memory. >> >>> It works with Py32 and Py33. In an attempt to just see the >>> performance and how it "can react", I did an horrible mistake, >>> I forgot Py33 is now optimized for ascii user, it is no more >>> unicode compliant and I stupidely tested/sorted lists of French >>> words... >> >> Now lets take this piece by piece… >> "I did an horrible mistake" : I am sorry. Did you get bruised? Break >> some bones? And is 'h' a vowel in french? >> "I forgot Py33 is now optimized for ascii user" Ok. >> "it is no more unicode compliant" I asked earlier and I ask again -- >> What do you mean by (non)compliant? > > ------ > > One aspect of Unicode (note the capitalized "U"). > > py32 >>>> timeit.repeat("'abc需'.find('a')") > [0.27941279564856814, 0.26568106110789813, 0.265546366757917] >>>> timeit.repeat("'abcdef'.find('a')") > [0.2891812867801491, 0.26698153112010914, 0.26738994644529157] > > py33 > timeit.repeat("'abc需'.find('a')") > [0.5941777382531654, 0.5829193385634426, 0.5519412133990045] > timeit.repeat("'abcdef'.find('a')") > [0.44333188136533863, 0.4232506078969891, 0.4225164843046514] > > jmf > Are you saying that to be compliant a unicode implementation has to perform within given time bounds? -- Cheers. Mark Lawrence