How do I display unicode value stored in a string variable using ord()

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Aug 18 21:50:58 CEST 2012


On 18/08/2012 19:40, rusi wrote:
> On Aug 18, 10:59 pm, Steven D'Aprano <steve
> +comp.lang.pyt... at pearwood.info> wrote:
>> On Sat, 18 Aug 2012 08:07:05 -0700, wxjmfauth wrote:
>>> Is there any reason why non ascii users are somehow penalized compared
>>> to ascii users?
>>
>> Of course there is a reason.
>>
>> If you want to represent 1114111 different characters in a string, as
>> Unicode supports, you can't use a single byte per character, or even two
>> bytes. That is a fact of basic mathematics. Supporting 1114111 characters
>> must be more expensive than supporting 128 of them.
>>
>> But why should you carry the cost of 4-bytes per character just because
>> someday you *might* need a non-BMP character?
>
> I am reminded of: http://answers.microsoft.com/thread/720108ee-0a9c-4090-b62d-bbd5cb1a7605
>
> Original above does not open for me but here's a copy that does:
>
> http://onceuponatimeinindia.blogspot.in/2009/07/hard-drive-weight-increasing.html
>

ROFLMAO doesn't adequately some up how much I laughed.

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list