Path: csiph.com!news.swapon.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'operator': 0.03; 'from:addr:yahoo.co.uk': 0.05; 'none,': 0.05; 'none"': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'disallow': 0.16; 'reasonable.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; 'have:': 0.18; 'language': 0.19; 'lawrence': 0.22; 'logical': 0.22; 'header:In- Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'chris': 0.26; 'see,': 0.27; 'node': 0.29; 'language.': 0.32; "isn't": 0.35; 'but': 0.36; '(and': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'no,': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; 'mark': 0.40; 'charset:windows-1252': 0.62; 'great': 0.63; 'our': 0.64; "they're": 0.66; '17:16,': 0.84; 'common,': 0.84; 'mate': 0.84; 'pythonistas,': 0.84; 'seriously,': 0.91; 'subject:True': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: True == 1 weirdness Date: Wed, 16 Sep 2015 21:17:44 +0100 References: <0b949fe0-09b4-46b0-b4ac-a85a9bfebfd5@googlegroups.com> <1442412230.1762717.385286049.20841F36@webmail.messagingengine.com> <87oah2jq4y.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 195.147.66.69 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <87oah2jq4y.fsf@elektro.pacujo.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442434698 news.xs4all.nl 23823 [2001:888:2000:d::a6]:59546 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96717 On 16/09/2015 17:16, Marko Rauhamaa wrote: > Chris Angelico : > >> Far as I can see, the only operator that you might want to disallow >> chaining on is 'in' (and its mate 'not in', of course). It isn't >> common, but "x is y is z is None" is a perfectly reasonable way to >> ascertain whether or not they're all None, just as "x = y = z = None" >> is a perfectly reasonable way to set them all to None; > > Then you can have: > > first_node is not node is not last_node > > No, seriously, that's not reasonable. > > Frankly, I don't think chaining was all that great of an idea. > > > Marko > I disagree, perfectly logical where I sit. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence