trying to strip out non ascii.. or rather convert non ascii

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Oct 29 11:56:45 EDT 2013


On 29/10/2013 15:38, wxjmfauth at gmail.com wrote:

It's okay folks I'll snip all the double spaced google crap as the 
poster is clearly too bone idle to follow the instructions that have 
been repeatedly posted here asking for people not to post double spaced 
google crap.

> Le mardi 29 octobre 2013 06:22:27 UTC+1, Steven D'Aprano a écrit :
>> On Mon, 28 Oct 2013 07:01:16 -0700, wxjmfauth wrote:
>>> And of course, logically, they are very, very badly handled with the
>>> Flexible String Representation.
>>
>> I'm reminded of Cato the Elder, the Roman senator who would end every
>> speech, no matter the topic, with "Ceterum censeo Carthaginem esse
>> delendam" ("Furthermore, I consider that Carthage must be destroyed").
>>
>> But at least he had the good grace to present that as an opinion, instead
>> of repeating a falsehood as if it were a fact.
>>
>> --
>>
>> Steven
>
> ------
>
>>>> import timeit
>>>> timeit.timeit("a = 'hundred'; 'x' in a")
> 0.12621293837694095
>>>> timeit.timeit("a = 'hundreij'; 'x' in a")
> 0.26411553466961735
>
> If you are understanding the coding of characters, Unicode
> and what this FSR does, it is a child play to produce gazillion
> of examples like this.
>
> (Notice the usage of a Dutch character instead of a boring €).
>
> jmf
>

You've stated above that logically unicode is badly handled by the fsr. 
  You then provide a trivial timing example.  WTF???

-- 
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence




More information about the Python-list mailing list