Cleland Loszewski <losze...@gmail.com> added the comment:
You're right, I did mean the second string to report '20200106'. Looking closer, I see that I was reading the documentation incorrectly and getting hung up on an introduced ambiguity. ```python from datetime import datetime print(datetime.strptime('2020016', '%Y%m%d')) print(datetime.strptime('20200106', '%Y%m%d')) print(datetime.strptime('202016', '%Y%m%d')) print(datetime.strptime('2020106', '%Y%m%d')) ``` ---------- resolution: -> not a bug stage: -> resolved status: pending -> closed _______________________________________ 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