Python Unicode handling wins again -- mostly

Chris Angelico rosuav at
Sat Nov 30 03:12:34 CET 2013

On Sat, Nov 30, 2013 at 1:08 PM, Roy Smith <roy at> wrote:
> I would certainly expect, x.lower() == x.upper().lower(), to be True for
> all values of x over the set of valid unicode codepoints.  Having
> u"\uFB04".upper() ==> "FFL" breaks that.  I would also expect len(x) ==
> len(x.upper()) to be True.

That's a nice theory, but the Unicode consortium disagrees with you on
both points.


More information about the Python-list mailing list