Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cpython': 0.05; 'test,': 0.05; '"if': 0.09; 'semantics': 0.09; 'subject:while': 0.09; '11:19': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'implemented': 0.27; 'skip:l 40': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'option': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'skip:6 10': 0.63; 'ever': 0.63; '(is': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=frM2lURwl2gwiTLizE5rz5wK9zBrlzX2/ldOv6Hle6A=; b=WZMx8nJ/0fpMeg8Pq9Vpj2zSnPcXL1shIIyn1UT57IGhkanBtliERsdmYhjwmWaN9w SX0bAQirc7wklWG0XXvPEKXTWU/N0LlgKkU8yliL7DbFC5KAqo3zKm6PUlnB6G5B1uJ6 IwmDye0wpIeJg3hEqycuohD2iPsbR70N1/nfAmELwiz68O/yjDN7Rl62GTHOhwa+KaxI Aq6GiyRzvGXVP4XmJXuhY2aTy9F5Lhz0TsvbYna1PVUD9/gHN5svYL6eyVKoLWESbQGf +um1dwiYUIYxoHgOCMpNeaakWAVnpryvFp2dWZ78TzC6OrmiAcCpCtcWxeXRvKJeSW9w nc8A== Date: Sun, 15 Jul 2012 12:16:00 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Implicit conversion to boolean in if and while statements References: <5002a1f9$0$29995$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342372565 news.xs4all.nl 6876 [2001:888:2000:d::a6]:35571 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25360 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