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

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

Guido van Rossum wrote:
>   - unichr(i) for i >= 0x110000 (and hence corresponding \u and \U)
>     raises an exception at Python-to-bytecode compile-time

unichr(i) is an expression. When would it be evaluated at compile-time?

Also, I'm not sure what runtime behavior you want for these "very large"
unichr(i) values.

In general I don't understand why we're treating the > 0x11000 range
specially at all?
Take a recipe. Leave a recipe.  
Python Cookbook!  http://www.ActiveState.com/pythoncookbook