S
Steven D'Aprano
Do unicode.lower() or unicode.upper() ever change the length of the
string?
The Unicode standard allows for case conversions that change length, e.g.
sharp-S in German should convert to SS:
http://unicode.org/faq/casemap_charprop.html#6
but I see that Python doesn't do that:
'PAßSTRAßE'
The more I think about this, the more I think that upper/lower/title case
conversions should change length (at least sometimes) and if Python
doesn't do so, that's a bug. Any thoughts?
string?
The Unicode standard allows for case conversions that change length, e.g.
sharp-S in German should convert to SS:
http://unicode.org/faq/casemap_charprop.html#6
but I see that Python doesn't do that:
'PAßSTRAßE'
The more I think about this, the more I think that upper/lower/title case
conversions should change length (at least sometimes) and if Python
doesn't do so, that's a bug. Any thoughts?