Python Unicode handling wins again -- mostly

Roy Smith roy at panix.com
Fri Nov 29 21:28:47 EST 2013


In article <mailman.3417.1385777557.18130.python-list at python.org>,
 Chris Angelico <rosuav at gmail.com> wrote:

> On Sat, Nov 30, 2013 at 1:08 PM, Roy Smith <roy at panix.com> 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.
> 
> ChrisA

Harumph.



More information about the Python-list mailing list