Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86159
| References | <87f18c68-120d-44f2-bd34-6f73c69365da@googlegroups.com> <871tlhiqpz.fsf@elektro.pacujo.net> |
|---|---|
| Date | 2015-02-23 08:36 +1100 |
| Subject | Re: id() and is operator |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19030.1424640985.18130.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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