[Python-Dev] 2.2 Unicode questions

Andrew Kuchling akuchlin@mems-exchange.org
Fri, 20 Jul 2001 12:42:47 -0400


On Fri, Jul 20, 2001 at 06:39:30PM +0200, M.-A. Lemburg wrote:
>Same here: UTF-16 -> UCS-2. Note that I very much favour
>removing the surrogate generation in unichr() for UCS2-builds.

Do I understand the new behavior you intend to implement?
  * Narrow Python: unichr() accepts values from 0 .. 65535.  len(unichr(x))
    is always 1.
  * Wide Python: unichr() accepts values from 0 .. 0x110000.  len(unichr(x))
    is also always 1.
 
--amk