[XML-SIG] Re: Issues with Unicode type
Fred L. Drake, Jr.
fdrake@acm.org
Tue, 24 Sep 2002 10:10:59 -0400
Martin v. Loewis writes:
> 3. Implement it properly. Please understand that you will be trading
> efficiency for correctness.
I'm sure a small C extension could provide the needed helpers quite
efficiently. Even with a UCS-4 version of Python, a Unicode literal
containing a surrogate pair (explicitly, using two \u sequences) will
exhibit the behavior that Eric wants to see suppressed.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation