[Python-3000] String comparison

Rauli Ruohonen rauli.ruohonen at gmail.com
Tue Jun 12 16:45:20 CEST 2007


On 6/12/07, Rauli Ruohonen <rauli.ruohonen at gmail.com> wrote:
> Another example would be unichr(), which gives you TypeError if you
> pass it a surrogate pair (oddly enough, as strings of different length
> are of the same type).

Sorry, I meant ord(), not unichr. Anyway, ord(unichr(i)) == i doesn't
work for all code points on a UCS-2 build.


More information about the Python-3000 mailing list