On Sun, Jul 15, 2012 at 11:16 AM, Andrew Berg <bahamutzero8...@gmail.com> wrote: > On 7/15/2012 11:19 AM, Ian Kelly wrote: >> Ugh, that's irritating. I can't think of any scenario where I would >> ever want the semantics "if timeval (is not midnight):". > It's not implemented with such a test, but > logging.handlers.TimedRotatingFileHandler has an option to rollover at > midnight.
Nor could it be implemented with such a test, since the rollover check would then have to run at exactly midnight for the test to evaluate false. If it were off by 1 microsecond, it would miss it. -- http://mail.python.org/mailman/listinfo/python-list