[Python-Dev] UTF-16 code point comparison

Bill Tutt billtut@microsoft.com
Thu, 27 Jul 2000 07:24:48 -0700


 -----Original Message-----
> From: 	Guido van Rossum [mailto:guido@beopen.com] 
> The invalidity of 0xD800-0xDFFF means that these aren't valid Unicode
> code points; it doesn't mean that we should trap all attempts to use
> these values.  That ways, apps that need UTF-16 awareness can code it
> themselves.


0xD800-0xDFFF are valid code points. They just aren't characters that you
normally want to render all on their own. :)

> Why?  Because I don't want to proliferate code that explicitly traps
> 0xD800-0xDFFF throughout the code.


Err... I don't think you have much choice in the long term.


Its not like the code is all that difficult, and certain cases might be able
to use helper functions to help centralize that particular part of code.

Bill