Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4322

Re: Python wide-python-build unicode for Windows

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Python wide-python-build unicode for Windows
Date 2011-04-29 15:38 -0400
References <8a88fbe46f1fdf31965b8edc9b748162.squirrel@e-ndicus.com>
Newsgroups comp.lang.python
Message-ID <mailman.999.1304105943.9059.python-list@python.org> (permalink)

Show all headers | View raw


On 4/29/2011 7:52 AM, satheesh@e-ndicus.com wrote:

> How could i increase the unicode range beyond 10000 ?

Use Python3, which, after renaming unichar to chr, changed it to always 
accept the full range of codepoints, even when that means returning a 
two-char string on narrow builds, like windows.
 >>> chr(0x10FFFF)
'\U0010ffff'
 >>> len(chr(0x10FFFF))
2

If OpenERP does not have a 3.x version, encourage them to make one to 
take advantage of the unicode improvements. Tell them the use case, that 
you want to use the full range, even on windows.

Or file a bug report requesting a workaround in the 2.x version.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python wide-python-build unicode for Windows Terry Reedy <tjreedy@udel.edu> - 2011-04-29 15:38 -0400

csiph-web