Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'none:': 0.07; 'def': 0.12; '"-"': 0.16; '"="': 0.16; '-tkc': 0.16; ':-/': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'subject: \n ': 0.16; 'subject:More': 0.16; 'wrote:': 0.18; 'typing': 0.19; 'header:In- Reply-To:1': 0.27; 'tim': 0.29; 'chase': 0.31; 'keys': 0.31; 'subject:other': 0.31; 'skip:d 20': 0.34; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'course': 0.61; 'received:50.22': 0.84; 'subject:!)': 0.84; 'subject:via': 0.84 Date: Thu, 13 Feb 2014 05:51:42 -0600 From: Tim Chase To: python-list@python.org Subject: Re: PyWart: More surpises via "implict conversion to boolean" (and other steaming piles!) In-Reply-To: <20140213053952.1f41b21b@bigbox.christie.dr> References: <85c2698c-d681-4511-b111-bb1e549ece93@googlegroups.com> <52f9c392$0$11128$c3e8da3@news.astraweb.com> <52fc45e6$0$11128$c3e8da3@news.astraweb.com> <20140213053952.1f41b21b@bigbox.christie.dr> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392292265 news.xs4all.nl 2902 [2001:888:2000:d::a6]:47261 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66167 On 2014-02-13 05:39, Tim Chase wrote: > def age(self, as_of=None): > if as_of is None: > as_of = datetime.date.today() > return as_of = self.dob and of course I mean return as_of - self.dob which is what I get for typing in the dark and the "-" and "=" keys are adjacent. :-/ -tkc