Is unicode.lower() locale-independent?
Fredrik Lundh
fredrik at pythonware.com
Sat Jan 12 06:51:24 EST 2008
Robert Kern wrote:
>> However it appears from your bug ticket that you have a much narrower
>> problem (case-shifting a small known list of English words like VOID)
>> and can work around it by writing your own locale-independent casing
>> functions. Do you still need to find out whether Python unicode
>> casings are locale-dependent?
>
> I would still like to know. There are other places where .lower() is used in
> numpy, not to mention the rest of my code.
"lower" uses the informative case mappings provided by the Unicode
character database; see
http://www.unicode.org/Public/4.1.0/ucd/UCD.html
afaik, changing the locale has no influence whatsoever on Python's
Unicode subsystem.
</F>
More information about the Python-list
mailing list