This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:24Sriram Rajagopalansetrecipients: + Sriram Rajagopalan, belopolsky, pitrou, vstinner, Arfrever, swalker, polymorphm, python-dev, hynek, Martin.Morrison, pconnell
2016-02-29 11:45:24Sriram Rajagopalansetmessageid: <1456746324.23.0.939872672902.issue14157@psf.upfronthosting.co.za>
2016-02-29 11:45:24Sriram Rajagopalanlinkissue14157 messages
2016-02-29 11:45:24Sriram Rajagopalancreate