In article <mailman.15221.1414379336.18130.python-l...@python.org>,
 Cameron Simpson <c...@zip.com.au> wrote:

> The "is" test is more direct and less subject to iffiness because the longer 
> expression using id() leaves more scope/time for things to change, and of 
> course "id" itself can be rebound to something weird.

Not to mention that Python is case-sensitive and in the code as 
presented by the OP:

>>>>Id(x) == id(y)

those are two different functions :-)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to