Sriram Rajagopalan added the comment: datetime.strptime() uses the return value of _strptime() [ which returns 1900 for 29th Feb without an year ] and eventually ends up calling datetime_new()->check_date_args() [ datetimemodule.c ] with 29th Feb 1900 and eventual failure.
Should we enhance check_date_args to take a year_dont_care flag and validate the input year argument only if it is explicitly passed? ---------- nosy: +Sriram Rajagopalan _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14157> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com