convert Unicode to lower/uppercase?

Martin v. Löwis martin at v.loewis.de
Tue Sep 23 17:41:45 EDT 2003


Peter Otten <__peter__ at web.de> writes:

> Looking into stringobject.c (judging from a first impression,
> unicodeobject.c has essentially the same algorithm, but with a few
> indirections):

You are mistaken. The implementation in unicodeobject.c is
fundamentally different. The byte string implementation uses the C
library, the Unicode implementation uses the Unicode character
database. So the former cannot be changed, whereas the latter could,
in theory, be extended to use additional data.

Regards,
Martin





More information about the Python-list mailing list