samwyse wrote:
On Jul 8, 4:56 pm, Joseph Barillari <[EMAIL PROTECTED]> wrote:

My question is: did something about the way the special method names are
implemented change for new-style classes?

I believe the difference is that for new-style classes, when special methods are called 'behind the scenes' to implement built-in syntax and methods, they are looked up directly on the class instead of first on the instance. Note that functions attached to instances are *not* methods and do not get combined with the instance as a bound method.

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

Reply via email to