Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.056 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; '(especially': 0.07; 'here?': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; '31,': 0.24; 'header:In-Reply- To:1': 0.27; 'generally': 0.29; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'equality': 0.31; 'exceptions': 0.31; 'steven': 0.31; 'fri,': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'more': 0.64; '2013': 0.98 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:to :content-type; bh=TIqERRPeYPJILMfThSPBvnmunEMaGg6itSKAUmv9778=; b=0YTJkVSzjZsIUIAcgNL9qx+ZTxeb78+SX6hd66ZXdjI161WCulXyEjN2cmi42D1umo 0zMAoz671JNjlJPEIc0gZPsSYpRF/G4wTaxEyNnGv+3D8YZ1em58VM9dgKXN9BZZ4gUn PsNkOLuPYrY5ezCupdYCdn1yuP745YYxMajgV26DGXTaZSe+WYm2O2w7Dovvi7Wep+T5 vdebJOyTQL301sT9YbEJOKLJWzxzAOrwwL1p7avAN1Oyw/S3CyNjLcSdx/5sXH7ah812 NKCRbXGYOBf3efWyC16sLKwU5hhAbAo0au+Otvlfr4BlyPgyTcrVgJZ866vCbx850dQg Wkow== MIME-Version: 1.0 X-Received: by 10.52.117.16 with SMTP id ka16mr7404152vdb.43.1369984141514; Fri, 31 May 2013 00:09:01 -0700 (PDT) In-Reply-To: <51a8318e$0$29966$c3e8da3$5496439d@news.astraweb.com> References: <5f101d70-e51f-4531-9153-c92ee2486fd9@googlegroups.com> <51a1fc7b$0$30002$c3e8da3$5496439d@news.astraweb.com> <2abf4e9c-8c3b-4e2f-80c9-50c1f1d75c9d@googlegroups.com> <51a4b5a1$0$29966$c3e8da3$5496439d@news.astraweb.com> <04b90c02-833a-4bad-88ad-ab71178b8f79@googlegroups.com> <48519aa0-d0cd-4ffc-a2f5-2107465321d8@qn4g2000pbc.googlegroups.com> <51a6b969$0$29966$c3e8da3$5496439d@news.astraweb.com> <51a6e6b8$0$11118$c3e8da3@news.astraweb.com> <51a8318e$0$29966$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 31 May 2013 17:09:01 +1000 Subject: Re: Short-circuit Logic From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369984150 news.xs4all.nl 15865 [2001:888:2000:d::a6]:34783 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46577 On Fri, May 31, 2013 at 3:13 PM, Steven D'Aprano wrote: > What makes you think that the commutative law is relevant here? > Equality should be commutative. If a == b, then b == a. Also, it's generally understood that if a == c and b == c, then a == b, though there are more exceptions to that (especially in loosely-typed languages). ChrisA