On 10/26/2014 05:12 PM, Dan Stromberg wrote:
Are the following two expressions the same?

x is y

Id(x) == id(y)

?

Nope. If the value if `id(x)` is not interned, then the two value could be different objects that still represent the same value.

--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to