Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'valueerror:': 0.09; 'callable,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'subject:More': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'references': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'implicit': 0.31; 'subject:other': 0.31; 'guess': 0.33; 'except': 0.35; 'johnson': 0.35; 'example,': 0.37; 'so,': 0.37; 'work?': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'subject:!)': 0.84; 'subject:via': 0.84; 'rick': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: PyWart: More surpises via "implict conversion to boolean" (and other steaming piles!) Date: Mon, 10 Feb 2014 17:00:14 -0500 References: <85c2698c-d681-4511-b111-bb1e549ece93@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 18.189.30.229 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392069630 news.xs4all.nl 2887 [2001:888:2000:d::a6]:48137 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65845 On 2/10/14 4:12 PM, Rotwang wrote: > On 10/02/2014 18:45, Rick Johnson wrote: >> [...] >> >> 3. Implicit introspection is evil, i prefer all >> references to a callable's names to result in a CALL >> to that callable, not an introspection! > > So, for example, none of > > isinstance(x, myclass) > > map(myfunc, range(10)) > > x = property(x_get, x_set) > > would still work? I guess neither would: except ValueError: :( -- Ned Batchelder, http://nedbatchelder.com