Hi all, 

This is quite strange when I used the Python shell with IDLE:

>>> x = []
>>> id(getattr(x, 'pop')) == id(x.pop)

True
>>> getattr(x, 'pop') is x.pop
False
>>> 

I suppose since the two things have the same id, the 'is'-test 
should give a True value, but I get a False value. 

Any particular reason for breaking this test?
I am quite confused as I show this before a large 
audience only to find the result denies my prediction.

The python version is 3.2.2; I am not sure about other versions.

Regards,

Yingjie
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to