How to replace a method in an instance.

Wildemar Wildenburger wildemar at freakmail.de
Fri Aug 24 12:44:15 EDT 2007


Steven W. Orr wrote:
> Sorry. I need repmeth to have self passed to it automatically if it's 
> called. I didn't mean to obfuscate the problem by not making a reference 
> to self in repmeth. 
>
> Am I being clear?
>
>   
Sort of. Maybe you fare better if you state what you want to achieve, 
instead of how you think you should do it. Chances are you don't need to 
replace a method in __init__, but there's another, less tricky way.

/W



More information about the Python-list mailing list