[Python-Dev] Internationalization Toolkit

Tim Peters tim_one@email.msn.com
Thu, 11 Nov 1999 01:56:35 -0500


[MAL, on Unicode chr() and ord()
> ...
> Because unichr() will always have to return Unicode objects. You don't
> want chr(i) to return Unicode for i>255 and strings for i<256.

Indeed I do not!

> OTOH, ord() could probably be extended to also work on Unicode objects.

I think should be -- it's a good & natural use of polymorphism; introducing
a new function *here* would be as odd as introducing a unilen() function to
get the length of a Unicode string.