[Python-Dev] Re: \ud800 crashes interpreter (PR#384)

Bill Tutt billtut@microsoft.com
Wed, 5 Jul 2000 08:26:22 -0700


> MAL wrote:
> ... I wonder why compiling "print u'\uD800'" causes the
> hash value to be computed ...

That's an easy one. Com_addconst() (or something it calls) calls
PyObject_Hash() during the compilation process.

Re: UTF-8
There's no reason why you can't support surrogates in UTF-8, while still not
supporting them in slice notation.
It's certainly the easiest way to fix the problem. 

Bill