[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

Noor Michael report at bugs.python.org
Mon Feb 22 23:16:11 EST 2021


Noor Michael <nsmichael31 at gmail.com> added the comment:

I will address the original issue regarding '%z', but the second issue actually has to do with the Unicode representation of Turkish characters. In Turkish, the letter I ('\u0049') is a capital ı ('\u0131') and the letter İ ('\u0130') is a capital i ('\u0069'). In Python however, the lowercase of I is i, as in English.

>>> '\u0049'.lower()
'i'
>>> '\u0130'.lower()
'i̇'

We see that the lowercase forms of both I and İ are i, consistent with English in one case and Turkish in the other.

----------
nosy: +noormichael

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


More information about the Python-bugs-list mailing list