Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '16,': 0.03; 'operator': 0.03; 'cc:addr:python-list': 0.09; 'precedence': 0.09; 'wed,': 0.15; '"=="': 0.16; 'earlier.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'sep': 0.22; 'header :In-Reply-To:1': 0.24; 'paul': 0.24; 'message-id:@mail.gmail.com': 0.27; 'comparison': 0.29; 'operators': 0.29; 'that,': 0.34; 'received:google.com': 0.35; 'pm,': 0.36; 'subject:: ': 0.37; 'no,': 0.38; 'within': 0.64; "they're": 0.66; '11:45': 0.84; 'chrisa': 0.84; 'to:none': 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:date:message-id:subject:from:cc :content-type; bh=+MVXRJYNxsg3LL0waFMT1Ms7Mu4FlizqU3k5LkhmMac=; b=Fr4I/kA48d+mduzguMEQzddoJ1YbeZwyctj/doZqzC5+2d/GMWsUWEmV8hiwK5YhL1 JJltPX866QIJd4GkjtDqzqCJDp2TRq8sEA/ggYs3cXoQ/Nj/3r8RwSKTgiCNkITxVnzX VUfD8s0zvcIlpE23JPR/KolZux+HoUhQCg6fne7dEI1D1SjtMjTZlu5A6S/MWo79FWVc lQTqCBXyineT3nE0EhaQeU5TvWY7wufkzvqVVWZiNsitfKiPDShzubTCqT8HTSHXPdqG 944NCWIgbStEKVFEfT5xH9RWywe2MUzm+Raga0mVDwuNmhQtY7mauA3mqjrp1pSI2gFn cRgQ== MIME-Version: 1.0 X-Received: by 10.50.178.145 with SMTP id cy17mr16953652igc.92.1442415428792; Wed, 16 Sep 2015 07:57:08 -0700 (PDT) In-Reply-To: References: <0b949fe0-09b4-46b0-b4ac-a85a9bfebfd5@googlegroups.com> Date: Thu, 17 Sep 2015 00:57:08 +1000 Subject: Re: True == 1 weirdness From: Chris Angelico Cc: "python-list@python.org" 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442415437 news.xs4all.nl 23806 [2001:888:2000:d::a6]:51201 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96684 On Wed, Sep 16, 2015 at 11:45 PM, Watson, Paul wrote: > In terms of operator precedence, is "==" evaluated before "in"? No, they're at the same precedence level. Within that, all comparison operators are evaluated left-to-right, with the chaining that was described earlier. ChrisA