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

Mark Lawrence breamoreboy at
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> 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:
> Original above does not open for me but here's a copy that does:

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


Mark Lawrence.

More information about the Python-list mailing list