Implicit conversion to boolean in if and while statements

Andrew Berg bahamutzero8825 at gmail.com
Sun Jul 15 13:16:00 EDT 2012


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.
-- 
CPython 3.3.0b1 | Windows NT 6.1.7601.17803



More information about the Python-list mailing list