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


Groups > comp.lang.python > #79743

Re: id == vs is

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.python
Subject Re: id == vs is
Date 2014-10-27 01:47 +0000
Organization A noiseless patient Spider
Message-ID <m2k87s$mgr$2@dont-email.me> (permalink)
References <mailman.15206.1414368757.18130.python-list@python.org>

Show all headers | View raw


On Sun, 26 Oct 2014 17:12:29 -0700, Dan Stromberg wrote:

> Are the following two expressions the same?
> 
> x is y
> 
> Id(x) == id(y)

No, although if "Id" and "id" were the same function, they might be 
equivalent in some cases. 

-- 
Denis McMahon, denismfmcmahon@gmail.com

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


Thread

id == vs is Dan Stromberg <drsalists@gmail.com> - 2014-10-26 17:12 -0700
  Re: id == vs is Denis McMahon <denismfmcmahon@gmail.com> - 2014-10-27 01:47 +0000

csiph-web