[issue26460] datetime.strptime without a year fails on Feb 29

Nick Moore report at bugs.python.org
Mon Mar 2 18:14:59 EST 2020


Nick Moore <nick at zoic.org> added the comment:

Not disagreeing with you that "%b %d" timestamps with no "%Y" are excerable, but they're fairly common in the *nix world unfortunately.

People need to parse them, and the simple and obvious way to do this breaks every four years.

I like the idea of having a warning for not including %Y *and* not setting a default_year kwarg though.

----------

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


More information about the Python-bugs-list mailing list