Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!87.79.20.101.MISMATCH!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.037 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'subject:not': 0.03; "subject:' ": 0.07; 'correspond': 0.09; '"in': 0.16; 'definition.': 0.16; 'distinct': 0.16; 'internally': 0.16; 'wrote:': 0.18; '(not': 0.18; "python's": 0.19; 'memory': 0.22; 'aug': 0.22; 'integer': 0.24; 'pointer': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'actual': 0.34; 'definition': 0.35; 'objects': 0.35; 'received:google.com': 0.35; 'scheme': 0.36; 'words,': 0.36; 'two': 0.37; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'address.': 0.39; 'how': 0.40; 'most': 0.60; 'such': 0.63; 'more': 0.64; 'different': 0.65; '3:00': 0.84; 'attempt,': 0.84; 'possible."': 0.84 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=4Vhxw+RqZzuhx3CUi25xBjeyeFtsjpOIfirjqa419wc=; b=Va9Jl3QQcZzn45LKnf+jM2tqxfB9EBAzVw5GYVsicRIk2s9/7RAn83mmhaj2+w24AK lgxhPvdm0XylrscjtJgqVrENv3H+3yBS3ll99qoSMiENUfpgZZiLh/brZCPrp365OV6/ wSImcC+pZZuCA8keWDQ+KPqkDTuIqp0OiW3letEKld8dWfYLc1yca3aIrN2hCjzbqNCA AvAKwPq3rxV3gJUMNz/ghyndF7QfENE4+WkVdAYdRp82MqK93B9chnaiO73ZaPrGDLCV /3Dv7Bt/PmcKrbuWPvBXcsytM+csU/GTt2tu+dUuhQCYIoTZVlAME4DBWL5Pznv9rtDR fiTQ== X-Received: by 10.70.137.98 with SMTP id qh2mr42749728pdb.61.1408486941421; Tue, 19 Aug 2014 15:22:21 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <87bnrg5h5l.fsf@elektro.pacujo.net> References: <87fvgt7c4i.fsf@elektro.pacujo.net> <53F27340.90604@stoneleaf.us> <8761ho75gv.fsf@elektro.pacujo.net> <53f396eb$0$29993$c3e8da3$5496439d@news.astraweb.com> <87ha185n34.fsf@elektro.pacujo.net> <87bnrg5h5l.fsf@elektro.pacujo.net> From: Ian Kelly Date: Tue, 19 Aug 2014 16:21:41 -0600 Subject: Re: 'is not' or '!=' To: Python Content-Type: text/plain; charset=UTF-8 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408486944 news.xs4all.nl 2925 [2001:888:2000:d::a6]:53101 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76612 On Tue, Aug 19, 2014 at 3:00 PM, Marko Rauhamaa wrote: > For a more worthy attempt, we'll have to take a look at Scheme ( http://www.scheme.com/tspl2d/objects.html>): Those are invariants, not a definition. The actual definition is found in the paragraph above: "In most Scheme systems, two objects are considered identical if they are represented internally by the same pointer value and distinct (not identical) if they are represented internally by different pointer values, although other criteria, such as time-stamping, are possible." In other words, object identity in Scheme is also established by an integer that may or may not correspond to a memory address. How is this any different from Python's definition?