Henry S. Thompson <h...@inf.ed.ac.uk> added the comment: This issue is also implicated in a failure of isalpha and friends. Easy way to see this is to compare >>> isalpha('İ') True >>> isalpha('İ'.lower()) False
This results from the use of a combining character to encode lower-case Turkish dotted i: >>> len('İ'.lower()) 2 >>> unicodedata.category('İ'.lower()[1]) 'Mn' ---------- nosy: +HThompson _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue12731> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com