Martin Morrison <martin.morri...@gmail.com> added the comment:

This solution has some very undesirable properties - namely that Mar 1st is now 
less than Feb 29th!

It seems like the correct follow up fix would be to adjust the date of the 
returned struct_time back to 1900. The struct_time object doesn't have the 
validation issue, so this works fine. This pair of fixes then nicely 
circumvents the intermediate datetime object's checking, while providing a 
consistent end result.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14157>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to