Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86159

Re: id() and is operator

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 <rosuav@gmail.com>
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 <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.19030.1424640985.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Mon, Feb 23, 2015 at 8:25 AM, Marko Rauhamaa <marko@pacujo.net> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

id() and is operator LJ <luisjosenovoa@gmail.com> - 2015-02-22 09:53 -0800
  Re: id() and is operator Laura Creighton <lac@openend.se> - 2015-02-22 19:13 +0100
  Re: id() and is operator Chris Angelico <rosuav@gmail.com> - 2015-02-23 06:23 +1100
  Re: id() and is operator Gary Herron <gherron@digipen.edu> - 2015-02-22 11:16 -0800
  Re: id() and is operator Laura Creighton <lac@openend.se> - 2015-02-22 20:58 +0100
  Re: id() and is operator Marko Rauhamaa <marko@pacujo.net> - 2015-02-22 23:25 +0200
    Re: id() and is operator Chris Angelico <rosuav@gmail.com> - 2015-02-23 08:36 +1100
    Re: id() and is operator Terry Reedy <tjreedy@udel.edu> - 2015-02-23 01:02 -0500
      Re: id() and is operator Marko Rauhamaa <marko@pacujo.net> - 2015-02-23 08:31 +0200
    Re: id() and is operator Gary Herron <gherron@digipen.edu> - 2015-02-22 22:29 -0800
  Re: id() and is operator Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-02-23 12:31 +1100
  Re: id() and is operator Terry Reedy <tjreedy@udel.edu> - 2015-02-23 01:14 -0500

csiph-web