On Tue, Aug 30, 2011 at 7:55 PM, Stephen J. Turnbull <step...@xemacs.org> wrote:
> Antoine Pitrou writes:
>
>  > Sorry, what is a conformant UTF-16 array op?
>
> For starters, one that doesn't ever return lone surrogates, but rather
> interprets surrogate pairs as Unicode code points as in UTF-16.  (This
> is not a Unicode standard definition, it's intended to be suggestive
> of why many app writers will be distressed if they must use Python
> unicode/str in a narrow build without a fairly comprehensive library
> that wraps the arrays in operations that treat unicode/str as an array
> of code points.)

That sounds like a contradiction -- it wouldn't be a UTF-16 array if
you couldn't tell that it was using UTF-16.

-- 
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to