Replacing methods without subclassing

Aum spam-me at no-thanks.com
Sat Jan 25 18:06:41 EST 2003


Hi,

I notice that when I replace a method in a class instance, by doing:

        >>>myinstance.methodname = myfunc

the new function gets called *without* the class instance as the first 
argument.

Is there any way of changing this *without* subclassing?

Cheers
A





More information about the Python-list mailing list