"Kent Johnson" <[EMAIL PROTECTED]> wrote

>> Wanted to change the mfunc method but ONLY for an instance, not a 
>> class:
>
> I believe the correct way to do this is to use the __get__() method 
> of
> the function object to create a bound method and assign that to the
> instance attribute:

Wow! Another new trick. I've never noticed __get__ before.
Time for some playing I think.

Thanks Kent,

Alan G 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to