[New-bugs-announce] [issue39422] datetime.datetime.strptime incorrectly interpretting format '%Y%m%d'

Cleland Loszewski report at bugs.python.org
Wed Jan 22 10:56:03 EST 2020


New submission from Cleland Loszewski <losze1cj at gmail.com>:

```python
from datetime import datetime
print(datetime.strptime('2020016', '%Y%m%d'))
print(datetime.strptime('20200116', '%Y%m%d'))
```
The former string has a format that does not match '%Y%m%d', but the latter does.  Both report the same datatime output.

----------
components: Library (Lib)
messages: 360480
nosy: losze1cj
priority: normal
severity: normal
status: open
title: datetime.datetime.strptime incorrectly interpretting format '%Y%m%d'
type: behavior

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


More information about the New-bugs-announce mailing list