Message261005
| Author |
Sriram Rajagopalan |
| Recipients |
Arfrever, Martin.Morrison, Sriram Rajagopalan, belopolsky, hynek, pconnell, pitrou, polymorphm, python-dev, swalker, vstinner |
| Date |
2016年02月29日.11:45:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1456746324.23.0.939872672902.issue14157@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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? |
|
History
|
|---|
| 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 |
|