A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-November/001157.html below:

[Python-Dev] Internationalization Toolkit

[Python-Dev] Internationalization Toolkit [Python-Dev] Internationalization ToolkitTim 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.





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4