Message91157
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. |
|
Date |
User |
Action |
Args |
2009-08-01 04:00:40 | abbeyj | set | recipients:
+ abbeyj, alexandre.vassalotti, AmirHabibi |
2009-08-01 04:00:40 | abbeyj | set | messageid: <1249099240.35.0.441474091904.issue6608@psf.upfronthosting.co.za> |
2009-08-01 04:00:39 | abbeyj | link | issue6608 messages |
2009-08-01 04:00:36 | abbeyj | create | |
|