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

2021-02-22 Thread Noor Michael

Noor Michael  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 
<https://bugs.python.org/issue43295>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-02-22 Thread Noor Michael


Change by Noor Michael :


--
keywords: +patch
pull_requests: +23411
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/24627

___
Python tracker 
<https://bugs.python.org/issue43295>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com