X-Received: by 10.140.92.97 with SMTP id a88mr3671607qge.6.1456939685202; Wed, 02 Mar 2016 09:28:05 -0800 (PST) X-Received: by 10.50.73.234 with SMTP id o10mr49312igv.10.1456939685164; Wed, 02 Mar 2016 09:28:05 -0800 (PST) Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!w104no4501221qge.1!news-out.google.com!k1ni6664igd.0!nntp.google.com!hb3no10751664igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Wed, 2 Mar 2016 09:28:04 -0800 (PST) In-Reply-To: <56d7218c$0$1587$c3e8da3$5496439d@news.astraweb.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=117.215.22.187; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui NNTP-Posting-Host: 117.215.22.187 References: <56d6ac61$0$23633$edfadb0f@dtext02.news.tele.dk> <56d6c146$0$1615$c3e8da3$5496439d@news.astraweb.com> <87y4a1t5wj.fsf@elektro.pacujo.net> <87twkpt2w7.fsf@elektro.pacujo.net> <87povdt1ec.fsf@elektro.pacujo.net> <56d7218c$0$1587$c3e8da3$5496439d@news.astraweb.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <40f149ea-4e0d-4e6e-a414-b14a158fd5ba@googlegroups.com> Subject: Re: Explaining names vs variables in Python From: Rustom Mody Injection-Date: Wed, 02 Mar 2016 17:28:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Lines: 25 Xref: csiph.com comp.lang.python:103886 On Wednesday, March 2, 2016 at 10:53:40 PM UTC+5:30, Steven D'Aprano wrote: > On Thu, 3 Mar 2016 01:11 am, Marko Rauhamaa wrote: > > > What is missing is the rules that are obeyed by the "is" operator. > > I think what is actually missing is some common bloody sense. The Python > docs are written in English, and don't define *hundreds*, possible > *thousands* of words because they are using their normal English meaning. > > The docs for `is` say: > > 6.10.3. Identity comparisons > > The operators is and is not test for object identity: x is y is true if and > only if x and y are the same object. x is not y yields the inverse truth > value. > > https://docs.python.org/3/reference/expressions.html#is-not > > > In this case, "same object" carries the normal English meaning of "same" and > the normal computer science meaning of "object" in the sense of "Object > Oriented Programming". There's no mystery here, no circular definition. > http://plato.stanford.edu/entries/identity/