➜

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.

作者 abbeyj
收信人 AmirHabibi, abbeyj, alexandre.vassalotti
日期 2009-08-01.04:00:36
SpamBayes Score 0.00021907165
Marked as misclassified 否
Message-id <1249099240.35.0.441474091904.issue6608@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2009-08-01 04:00:40abbeyj修改recipients: + abbeyj, alexandre.vassalotti, AmirHabibi
2009-08-01 04:00:40abbeyj修改messageid: <1249099240.35.0.441474091904.issue6608@psf.upfronthosting.co.za>
2009-08-01 04:00:39abbeyj链接issue6608 messages
2009-08-01 04:00:36abbeyj创建