[Python-Dev] Unicode mapping tables

Guido van Rossum guido@python.org
Sun, 05 Mar 2000 07:17:31 -0500

> [M.-A. Lemburg]
> > ...
> > Here's what I'll do:
> >
> > * implement .capitalize() in the traditional way for Unicode
> >   objects (simply convert the first char to uppercase)

> Given .title(), is .capitalize() of use for Unicode strings?  Or is it just
> a temptation to do something senseless in the Unicode world?  If it doesn't
> make sense, leave it out (this *seems* like compulsion <wink> to implement
> all current string methods in *some* way for Unicode, whether or not they
> make sense).

The intention of this is to make code that does something using
strings do exactly the same strings if those strings happen to be
Unicode strings with the same values.

The capitalize method returns self[0].upper() + self[1:] -- that may
not make sense for e.g. Japanese, but it certainly does for Russian or

It also does this in JPython.

--Guido van Rossum (home page: http://www.python.org/~guido/)