itchyny added the comment:
@noormichael Thank you for submitting a patch, I confirmed the original issue
is fixed. I'm ok this ticket is closed. Regarding the second issue, I learned
it is a Turkish character (thanks!), but the error is same type so will not
cause such a critical issue
itchyny added the comment:
I noticed another unexpectedeffect of the IGNORECASE flag. It enables some
non-ascii characters to match against the alphabets.
>>> from datetime import datetime
>>> datetime.strptime("Apr\u0130l", "%B")
Traceback (mos
New submission from itchyny :
In Python 3.9.2, parsing 'z' (small letter) as '%z' (time zone offset) using
datetime.strptime emits an IndexError.
>>> from datetime import datetime
>>> datetime.strptime('z', '%z')
Traceback (most recent call last):
File "", line 1