Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That doesn't explain why upper lower conversion shouldn't round trip within one locale.


As an example, the Greek letter sigma has two lowercase forms, depending on whether it's at the end of a word. So 'ς'.upper().lower() == 'σ', even though all three characters are ordinary Greek letters you could even find within a single word.


adds to personal notes: Never accept a job that involves manually dealing with locales


Good note, but the fact that ς doesn't round trip isn't locale-dependent.


Thanks. That's a much better example.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: