How do I display unicode value stored in a string variable using ord()
lipska the kat
lipskathekat at yahoo.co.uk
Sun Aug 19 06:49:21 EDT 2012
On 19/08/12 11:19, Chris Angelico wrote:
> On Sun, Aug 19, 2012 at 8:13 PM, lipska the kat
> <lipskathekat at yahoo.co.uk> wrote:
>> The date stamp is different but the Python version is the same
>
> Check out what 'sys.maxunicode' is in each of those Pythons. It's
> possible that one is a wide build and the other narrow.
Ah ...
I built my local version from source
and no, I didn't read the makefile so I didn't configure for a wide
build :-( not that I would have known the difference at that time.
[lipska at ubuntu ~]$ python3.2
Python 3.2.3 (default, Jul 17 2012, 14:23:10)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxunicode
65535
>>>
Later, I did an apt-get install idle3 which pulled
down a precompiled IDLE from the Ubuntu repos
This was obviously compiled 'wide'
Python 3.2.3 (default, May 3 2012, 15:51:42)
[GCC 4.6.3] on linux2
Type "copyright", "credits" or "license()" for more information.
==== No Subprocess ====
>>> import sys
>>> sys.maxunicode
1114111
>>>
All very interesting and enlightening
Thanks
lipska
--
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun
More information about the Python-list
mailing list