Path: csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '16,': 0.03; 'yet.': 0.03; 'allowed.': 0.07; 'wed,': 0.15; 'thu,': 0.15; '"="': 0.16; '"is"': 0.16; 'pry': 0.16; 'wrote:': 0.16; '>>>': 0.20; '2015': 0.20; 'sep': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; '(which': 0.26; 'message-id:@mail.gmail.com': 0.27; 'comparison': 0.29; 'operators': 0.29; "i'm": 0.30; "d'aprano": 0.33; 'steven': 0.33; 'received:google.com': 0.35; "isn't": 0.35; 'should': 0.36; 'instead': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'sure': 0.39; 'to:addr:python.org': 0.40; '>>>>>': 0.66; '11:44': 0.84; 'hands.': 0.84; 'to:name:python': 0.84; 'edwards': 0.91; 'mistakenly': 0.91; 'subject:True': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ug/Jhc+CQLCnacYkW91t1QgWcAjd3qztGgLihCaQO4I=; b=pzO09u8PnNOL1Bk+aabyzGCiED3D11yySdaWPbrA/LXiI6owiwiWuviDuNZRGHppnO CPPTGc3URraNI5otoPN2cplUBDbEY5V/Gv/rHMZPNOhUgMDkbcLsf9bgkQKG/YXj8e9j cGFnaylsNHPWjMNy8mpwvsI++TD1juc2uTeGw/nFYOscuXxQ9PXKWEutJS03wzvPPIeU 6IvBalR0WvcJLs/3R5KBNYQNqYNGCvixUkR9ZgVQesimGBJvNho2TUNZLE+FmsHf/vhp EX1oujJ4njNSWHSuu1ufq4LgeEJXdDSDbarqMX7PGN1S7EK1CyQ7JmFn54mTsXqNX6la KoDg== X-Received: by 10.129.51.88 with SMTP id z85mr30368361ywz.148.1442426174276; Wed, 16 Sep 2015 10:56:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: 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> From: Ian Kelly Date: Wed, 16 Sep 2015 11:55:34 -0600 Subject: Re: True == 1 weirdness To: Python Content-Type: text/plain; charset=UTF-8 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442426182 news.xs4all.nl 23750 [2001:888:2000:d::a6]:36089 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96708 On Wed, Sep 16, 2015 at 11:44 AM, Grant Edwards wrote: > 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. It was mentioned as case A, albeit mistakenly using "=" (which isn't even a comparison operator) instead of "==".