Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'integers': 0.09; 'cc:addr :python-list': 0.11; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'identities': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'generally': 0.29; 'message-id:@mail.gmail.com': 0.30; 'this.': 0.32; 'equal': 0.35; 'received:google.com': 0.35; "didn't": 0.36; '2015': 0.84; 'to:none': 0.92 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=DbZjRI8yoYNZJ08AOHTITsaCUExdTNr2KgCccebIW/o=; b=RbHNKSPGVsGphfg87LWzfiPEw6io7sQev9lXG+D9X61y7XK9LVqOVxpRd18QcXCa4F aPs0MZf1Z6xfvNCHhJbi9flBXyvc+PcvaTNu5CGpegpOREGe9eAQRCz4Nx4CtDC4Nvpg SDfljs0U+i8XhRCfZuo1MmXHAH3bfxjGhvhNjVJrvoEDWmCu7F9bZomLwTKGwc9mrspO hK7QPxR3BTiXCRVfCbReJivvX9pIPRIYs+n2/Tj9e5pk/YrE+7i3NxrLHwMmL2+9Cy/J PcmpBsuYtTxVmXLTVHO8NsUgSEKRTtXrFOY8YH3GpnqQFUwUDUzc8zyVWRx+3WIPxog7 oD8A== MIME-Version: 1.0 X-Received: by 10.107.128.219 with SMTP id k88mr9873902ioi.27.1424640982084; Sun, 22 Feb 2015 13:36:22 -0800 (PST) In-Reply-To: <871tlhiqpz.fsf@elektro.pacujo.net> References: <87f18c68-120d-44f2-bd34-6f73c69365da@googlegroups.com> <871tlhiqpz.fsf@elektro.pacujo.net> Date: Mon, 23 Feb 2015 08:36:22 +1100 Subject: Re: id() and is operator 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.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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424640985 news.xs4all.nl 2905 [2001:888:2000:d::a6]:52138 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86159 On Mon, Feb 23, 2015 at 8:25 AM, Marko Rauhamaa wrote: > This is a true statement: > > If X is Y, then id(X) == id(Y). > > However, this is generally not a true statement: > > If X is Y, then id(X) is id(Y). Irrelevant, because the identities of equal integers didn't come into this. ChrisA