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 abbeyj
Recipients AmirHabibi, abbeyj, alexandre.vassalotti
Date 2009-08-01.04:00:36
SpamBayes Score 0.00021907165
Marked as misclassified No
Message-id <1249099240.35.0.441474091904.issue6608@psf.upfronthosting.co.za>
In-reply-to
Content
Since there's no good way to disable the assertion (see issue4804),
checking the validity of the argument beforehand looks like an option. 
The checking that's currently being done in the strftime()
implementation looks useful but it is not enough.  The checking in the
MS implementation of asctime() is very strict and validates the entire
date, not just one field at a time.  So there's no way to print out
non-existant dates like (2009, 2, 31, 0, 0, 0, 0, 0, 0) -> 'Mon Feb 31
00:00:00 2009'.  

I don't know if anybody is relying on that kind of behavior.  If not
then the function could be limited to accept only valid dates. 
Alternatively we could just not call down to asctime() but instead
provide our own implementation using sprintf/strftime.
History
Date User Action Args
2009-08-01 04:00:40abbeyjsetrecipients: + abbeyj, alexandre.vassalotti, AmirHabibi
2009-08-01 04:00:40abbeyjsetmessageid: <1249099240.35.0.441474091904.issue6608@psf.upfronthosting.co.za>
2009-08-01 04:00:39abbeyjlinkissue6608 messages
2009-08-01 04:00:36abbeyjcreate