>>>> m is c.myMethod
> False  <--- What? Why is that?

I think nobody has said this plainly yet (although Terry
points it out also): You cannot rely that

  foo.bar is foo.bar

for any object foo and any attribute bar. In some cases,
that relation may hold, in other cases, it may not.
It depends on whether foo intercepts access to bar and
returns something different each time.

As others have explained: objects return something new
for every access to a method.

Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to