[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

Philippe Ombredanne report at bugs.python.org
Tue Jan 7 10:40:25 EST 2020


Philippe Ombredanne <pombredanne at nexb.com> added the comment:

There is a weird thing though (using Python 3.6.8):

>>> [x.lower() for x in 'İ']
['i̇']
>>> [x for x in 'İ'.lower()]
['i', '̇']

I would expect that the results would be the same in both cases. (And this is a source of a bug for some code of mine)

----------
nosy: +pombredanne

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34723>
_______________________________________


More information about the Python-bugs-list mailing list