Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41743
| 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 | <python-python-list@m.gmane.org> |
| 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 <breamoreboy@yahoo.co.uk> |
| Subject | Re: "monty" < "python" |
| Date | Sat, 23 Mar 2013 16:06:23 +0000 |
| References | <d618f760-67d0-4c5f-865b-406e9a58a611@h11g2000vbf.googlegroups.com> <kicmmc$1eb$1@reader2.panix.com> <987098b6-d79c-4597-b656-9b3e983740e8@z3g2000vbg.googlegroups.com> <b25b8f94-30cd-4558-a695-4c457db1b732@j1g2000pbq.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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3645.1364054783.2939.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On 23/03/2013 09:23, jmfauth wrote:
> On 21 mar, 04:12, rusi <rustompm...@gmail.com> wrote:
>> On Mar 21, 12:40 am, jmfauth <wxjmfa...@gmail.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
"monty" < "python" franzferdinand <melo.dumoulin@hotmail.com> - 2013-03-20 06:33 -0700
Re: "monty" < "python" Jan Oelze <jan@codein.is> - 2013-03-20 14:38 +0100
Re: "monty" < "python" Roy Smith <roy@panix.com> - 2013-03-20 09:58 -0400
Re: "monty" < "python" franzferdinand <melo.dumoulin@hotmail.com> - 2013-03-20 07:03 -0700
Re: "monty" < "python" Terry Reedy <tjreedy@udel.edu> - 2013-03-21 04:08 -0400
Re: "monty" < "python" Roy Smith <roy@panix.com> - 2013-03-21 08:45 -0400
Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-21 23:55 +1100
Re: "monty" < "python" Wayne Werner <wayne@waynewerner.com> - 2013-03-21 07:56 -0500
Re: "monty" < "python" Dave Angel <davea@davea.name> - 2013-03-21 09:02 -0400
Re: "monty" < "python" "R. Michael Weylandt" <michael.weylandt@gmail.com> - 2013-03-20 13:40 +0000
Re: "monty" < "python" Ian Foote <ian@feete.org> - 2013-03-20 14:17 +0000
Re: "monty" < "python" Jan Oelze <jan@codein.is> - 2013-03-20 15:23 +0100
Re: "monty" < "python" Grant Edwards <invalid@invalid.invalid> - 2013-03-20 16:04 +0000
Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-20 12:40 -0700
Re: "monty" < "python" Tim Delaney <tim.delaney@aptare.com> - 2013-03-21 08:02 +1100
Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-23 02:24 -0700
Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-23 16:17 +0000
Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-24 06:31 -0700
Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-25 00:44 +1100
Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-24 14:08 +0000
Re: "monty" < "python" Michael Torrie <torriem@gmail.com> - 2013-03-20 19:41 -0600
Re: "monty" < "python" Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-21 02:52 +0000
Re: "monty" < "python" rusi <rustompmody@gmail.com> - 2013-03-20 20:12 -0700
Vowels [was Re: "monty" < "python"] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-21 04:28 +0000
Re: Vowels [was Re: "monty" < "python"] Larry Hudson <orgnut@yahoo.com> - 2013-03-20 23:26 -0700
Re: Vowels [was Re: "monty" < "python"] David H Wild <dhwild@talktalk.net> - 2013-03-21 09:36 +0000
Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-21 21:09 +1100
Re: Vowels [was Re: "monty" < "python"] Peter Pearson <ppearson@nowhere.invalid> - 2013-03-21 21:52 +0000
Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-22 08:59 +1100
Re: Vowels [was Re: "monty" < "python"] istjanichtzufassen@gmail.com - 2013-03-21 06:26 -0700
Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-22 00:38 +1100
Re: Vowels [was Re: "monty" < "python"] Grant Edwards <invalid@invalid.invalid> - 2013-03-21 17:31 +0000
Re: Vowels [was Re: "monty" < "python"] Terry Reedy <tjreedy@udel.edu> - 2013-03-21 19:05 -0400
Re: Vowels [was Re: "monty" < "python"] Roy Smith <roy@panix.com> - 2013-03-21 20:09 -0400
Re: Vowels [was Re: "monty" < "python"] Grant Edwards <invalid@invalid.invalid> - 2013-03-22 14:14 +0000
Re: Vowels [was Re: "monty" < "python"] Stefan Behnel <stefan_ml@behnel.de> - 2013-03-24 15:25 +0100
Re: Vowels [was Re: "monty" < "python"] rusi <rustompmody@gmail.com> - 2013-03-24 08:04 -0700
Re: Vowels [was Re: "monty" < "python"] Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-24 16:12 +0000
Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-23 02:23 -0700
Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-23 20:45 +1100
Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-23 20:56 +1100
Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-23 16:06 +0000
csiph-web