Path: csiph.com!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'allowed.': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '"="': 0.16; '"=="': 0.16; '"is"': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; 'language': 0.19; '>>>': 0.20; 'lawrence': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'van': 0.26; 'operators': 0.29; "i'm": 0.30; 'language.': 0.32; 'should': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'sure': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'ever': 0.60; 'replying': 0.61; 'charset:windows-1252': 0.62; 'our': 0.64; 'pythonistas,': 0.84; 'edwards': 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:22:51 +0100 References: <0b949fe0-09b4-46b0-b4ac-a85a9bfebfd5@googlegroups.com> <1442412230.1762717.385286049.20841F36@webmail.messagingengine.com> <87oah2jq4y.fsf@elektro.pacujo.net> <55F99ADB.5020405@mail.de> <1442422672.1804523.385461961.6F1DFD96@webmail.messagingengine.com> 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: 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442435109 news.xs4all.nl 23768 [2001:888:2000:d::a6]:34088 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3806 X-Received-Body-CRC: 4151580596 Xref: csiph.com comp.lang.python:96718 On 16/09/2015 18:41, Emile van Sebille wrote: > On 9/16/2015 10:27 AM, Grant Edwards wrote: >> On 2015-09-16, Sven R. Kunze wrote: >>> On 16.09.2015 18:57, Random832 wrote: >>>> I think that chaining should be limited to: >>>> >>>> A) all operators are "=" >>>> B) all operators are "is" >>>> C) all operators are either >= or > >>>> D) all operators are either <= or < >>> > > >> I'm not all that sure A and B should be allowed. > > I find A convenient for initializing: > > aname = bname = cname = None > > Nut I don't recall ever having used is this way. > > Emile > You're replying to a typo, it should have been "==" not "=". -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence