[I18n-sig] Unicode surrogates: just say no!

Paul Prescod paulp@ActiveState.com
Wed, 27 Jun 2001 12:17:32 -0700


I'm trying to sift through all of the decisions made in different
messages for the PEP.

Guido van Rossum wrote:
> 
>...
> 
>   - unichr(i) for 0x10000 <= i <= 0x10ffff (and hence corresponding \u
>     and \U) generates a surrogate pair, where u[0] is the high
>     surrogate value and u[1] the low surrogate value

Does this imply that ord() should take in surrogate pairs too?

-- 
Take a recipe. Leave a recipe.  
Python Cookbook!  http://www.ActiveState.com/pythoncookbook