[Python-3000] String comparison

"Martin v. Löwis" martin at v.loewis.de
Wed Jun 6 20:44:27 CEST 2007


>  > But I'm not about to change the == operator to apply normalization
>  > first. It would affect too much (e.g. hashing).
> 
> Yah, that's one reason why Jim Jewett and I lean to normalizing on the
> way in for explicitly Unicode data.  But since that's not going to
> happen, I guess the thing is to get cracking on that library just in
> case there's some help that Python itself could give.

There are issues with that as well. Concatenation would need to perform
normalization, and then len(a+b) <> len(a)+len(b), for some a and b.

Regards,
Martin


More information about the Python-3000 mailing list