On Wed, May 04, 2005 at 09:14:18AM -0700, S�bastien Boisg�rault wrote: > > Yup ?!? Weird ... especially as: > > >>> id(c.f) == id(C.__dict__['f'].__get__(c,C)) > True
Here, c.f is discarded by the time the right-hand-side of == is executed. So the object whose id() is being calculated on the right-hand-side could turn out to be the same, since the two objects have disjoint lifetimes. Here are some more cases of the same thing: >>> id([]) == id([]) 1 >>> id([]) == id([1]) 1 Jeff
pgp0amP007OuW.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list