Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Operator Precedence/Boolean Logic Date: Sun, 17 Jul 2016 14:05:41 +1000 Lines: 33 Message-ID: References: <15997174-44d5-431c-8f90-a8d700921820@googlegroups.com> <576B9B33.2030903@rece.vub.ac.be> <07e13a5d-38bf-7bfa-f45f-a24dea8e3004@online.de> <576ba927$0$1504$c3e8da3$5496439d@news.astraweb.com> <87wplgfdb5.fsf@elektro.pacujo.net> <4c257ef7-519f-4121-b63b-fb38566072d0@googlegroups.com> <5773c832$0$1598$c3e8da3$5496439d@news.astraweb.com> <57745c6d$0$1583$c3e8da3$5496439d@news.astraweb.com> <5775555f$0$22140$c3e8da3$5496439d@news.astraweb.com> <7ecde6d0-d3db-4a7a-8de6-65b398fedafe@googlegroups.com> <578a0992$0$1610$c3e8da3$5496439d@news.astraweb.com> <578a605f$0$1611$c3e8da3$5496439d@news.astraweb.com> <0d294d49-2cf0-84be-ebcd-af1d0ffc7222@mrabarnett.plus.com> <9eda5007-a48f-4bac-8d09-c8af9e6b9987@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de Jyt9laXbmGfPbUeg9G78hAAqqukyX+z3JNhyC6neLCCA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'mrab': 0.05; 'cc:addr:python-list': 0.09; 'likewise': 0.09; 'semantics': 0.09; 'python': 0.10; '"is': 0.16; '2016': 0.16; 'angels,': 0.16; 'argument.': 0.16; 'distinct': 0.16; 'distinction.': 0.16; 'flurry': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'objections': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'validity,': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; "python's": 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'example': 0.26; 'message-id:@mail.gmail.com': 0.27; 'argue': 0.29; 'comparison': 0.29; "i'm": 0.30; 'subject:/': 0.30; 'code': 0.30; "d'aprano": 0.33; 'steven': 0.33; 'received:google.com': 0.35; 'could': 0.35; 'false': 0.35; 'but': 0.36; 'there': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'thank': 0.38; 'some': 0.40; 'saturday,': 0.63; 'different': 0.63; 'jul': 0.72; 'chrisa': 0.84; 'pike': 0.84; 'utc+5:30,': 0.84; 'to:none': 0.91 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:cc :content-transfer-encoding; bh=tJ8XjbSzATCZTo6SyUUTVL0aBeAebtIiUOimVdRIBhI=; b=RrelBVUL7kDAG+ht9+tVJybHgUDUq+3aQfkDzYoHoTWOFoILugS9+a/wdezvhpUQ/S eUrRJJOVGkvW7TU/Kk3SOio6YLuq+c1gs72696kWnlVq6OBPGr/PI6F7Q4UcvegUA7VK apmfSUr66BwPb/6dZr55rqDDGfBAw8+PC5viOOKVS3qQLSZmOVy9jjrILumFQ91C0quG onNMSW57q4CKcRnV4+bk/FNkdc/syVKwPMZgKdXhEZsj74feysizyVr9wNfoVfDjoUcd nTKDPxlzNjIBZ9d8Yt54xcQybJSXj5LYa/xhZjrOQcVa8pY7aVS/n5Y5wn55ebDs/3j6 Nv0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc:content-transfer-encoding; bh=tJ8XjbSzATCZTo6SyUUTVL0aBeAebtIiUOimVdRIBhI=; b=Os3VESuzxy4TiL8uyOq1HN6JO1rIlzxj9DS02QCjb/Ze/oO03B4pFLw1pzzy6pOk2m FiJfWnxoHQvOb1dkoWHDrflMvUYIhVHw6l/GqaV0vSAXcuViniF1MyZSqj+Nv7ijN1Rk zP4c9H1ztRLepwDOvYWccCfxQDFk9gXr4mrio7fwV+obwKeltj6OdBfN8mUPTDZo48q7 K8qvuDX5ZV+TL27WZBG25P7Y3rjWbIPIFsEUXHqV4Bd1KZ4cvDGUj9944fUDCobaqgUz NpRgaAYkboEvD+rHHJthdwqbWGIw2hlhZY6+il0ZEnvg29Rniex/yqdG+7iz14gJZ3Pc BgmQ== X-Gm-Message-State: ALyK8tJhYCxU8Il5jCSRuuvdSXe392VLW4oPd+IpFvZS0ZRw1Zsiq085cdT62VEbkHfi1dRy5A2edCo3wPnVSQ== X-Received: by 10.28.193.140 with SMTP id r134mr23083224wmf.81.1468728342704; Sat, 16 Jul 2016 21:05:42 -0700 (PDT) In-Reply-To: <9eda5007-a48f-4bac-8d09-c8af9e6b9987@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <15997174-44d5-431c-8f90-a8d700921820@googlegroups.com> <576B9B33.2030903@rece.vub.ac.be> <07e13a5d-38bf-7bfa-f45f-a24dea8e3004@online.de> <576ba927$0$1504$c3e8da3$5496439d@news.astraweb.com> <87wplgfdb5.fsf@elektro.pacujo.net> <4c257ef7-519f-4121-b63b-fb38566072d0@googlegroups.com> <5773c832$0$1598$c3e8da3$5496439d@news.astraweb.com> <57745c6d$0$1583$c3e8da3$5496439d@news.astraweb.com> <5775555f$0$22140$c3e8da3$5496439d@news.astraweb.com> <7ecde6d0-d3db-4a7a-8de6-65b398fedafe@googlegroups.com> <578a0992$0$1610$c3e8da3$5496439d@news.astraweb.com> <578a605f$0$1611$c3e8da3$5496439d@news.astraweb.com> <0d294d49-2cf0-84be-ebcd-af1d0ffc7222@mrabarnett.plus.com> <9eda5007-a48f-4bac-8d09-c8af9e6b9987@googlegroups.com> Xref: csiph.com comp.lang.python:111545 On Sun, Jul 17, 2016 at 1:43 PM, Rustom Mody wrote: > Heh! A flurry of opinions! > No time right now=E2=80=A6 other than to say thank you (MRAB) for this li= ttle gem: > > On Saturday, July 16, 2016 at 10:29:02 PM UTC+5:30, MRAB wrote: >> On 2016-07-16 17:27, Steven D'Aprano wrote: >> > On Sat, 16 Jul 2016 10:33 pm, Rustom Mody wrote: >> [snip] >> >> > And yes, Rustom, I'm very familiar with the philosophical objections t= o the >> > something/nothing distinction. "Is zero truly nothing, or is it some t= hing >> > distinct from the absence of any number?" I'm not interested in that >> > argument. Let the philosophers count angels, but as far as Python code >> > goes, I'm an intuitionist: if I have zero sheep, that's the same as no= t >> > having any sheep, or having no sheep. >> > >> [snip] >> >> And if you're going to argue that zero is something, then you could also >> argue that false is something... > > Likewise Chris=E2=80=99 example of the comparison of Pike and Python alte= rnative > semantics So if you accept that there are different semantics that all have validity, can you also accept that Python's model is not "bizarre"? ChrisA