Message182495
Yes, I think 3.3 is correct here. I think it was Benjamin who fixed/improved the behaviour of casing methods. Compare 3.3:
>>> "ß".upper()
'SS'
with 3.2:
>>> "ß".upper()
'ß'
Also, 3.2 loses information:
>>> "KİTAP".lower().upper()
'KITAP'
>>> ascii("KİTAP".lower().upper())
"'KITAP'"
while 3.3 retains it:
>>> "KİTAP".lower().upper()
'KİTAP'
>>> ascii("KİTAP".lower().upper())
"'KI\\u0307TAP'"
You can get the combined form again with unicodedata.normalize:
>>> unicodedata.normalize("NFC", "KİTAP".lower().upper())
'KİTAP' |
|
Date |
User |
Action |
Args |
2013-02-20 12:28:22 | pitrou | set | recipients:
+ pitrou, lemburg, vstinner, benjamin.peterson, ezio.melotti, r.david.murray, firatozgul |
2013-02-20 12:28:22 | pitrou | set | messageid: <1361363302.21.0.0557867636893.issue17252@psf.upfronthosting.co.za> |
2013-02-20 12:28:22 | pitrou | link | issue17252 messages |
2013-02-20 12:28:21 | pitrou | create | |
|