Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: True == 1 weirdness Date: Wed, 16 Sep 2015 17:44:42 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 23 Message-ID: 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> <55f9a9e8$0$1641$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net X-Trace: reader1.panix.com 1442425482 23343 67.130.15.94 (16 Sep 2015 17:44:42 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 16 Sep 2015 17:44:42 +0000 (UTC) User-Agent: slrn/1.0.2 (Linux) Xref: csiph.com comp.lang.python:96703 On 2015-09-16, Steven D'Aprano wrote: > On Thu, 17 Sep 2015 03: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" > > [...] >> I'm not all that sure A and B should be allowed. > > You can take `x == y == z` off me when you pry it from my cold, dead hands. Well, that case hadn't been mentioned yet. But, I agree that should be added as case E and be allowed. -- Grant Edwards grant.b.edwards Yow! ... or were you at driving the PONTIAC that gmail.com HONKED at me in MIAMI last Tuesday?