id == vs is

MRAB python at mrabarnett.plus.com
Mon Oct 27 01:41:26 CET 2014


On 2014-10-27 00:24, Ethan Furman wrote:
> On 10/26/2014 05:23 PM, Ethan Furman wrote:
>> On 10/26/2014 05:12 PM, Dan Stromberg wrote:
>>> Are the following two expressions the same?
>>>
>>> x is y
>>>
>>> Id(x) == id(y)
>>>
>>> ?
>
> Listen to MRAB, ignore me.
>
> That is all.
>
Well, apart of Joshua's qualifications, that is! :-)



More information about the Python-list mailing list