Message261005
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? |
|
Date |
User |
Action |
Args |
2016-02-29 11:45:24 | Sriram Rajagopalan | set | recipients:
+ Sriram Rajagopalan, belopolsky, pitrou, vstinner, Arfrever, swalker, polymorphm, python-dev, hynek, Martin.Morrison, pconnell |
2016-02-29 11:45:24 | Sriram Rajagopalan | set | messageid: <1456746324.23.0.939872672902.issue14157@psf.upfronthosting.co.za> |
2016-02-29 11:45:24 | Sriram Rajagopalan | link | issue14157 messages |
2016-02-29 11:45:24 | Sriram Rajagopalan | create | |
|