New submission from Cleland Loszewski <losze...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue39422> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com