Is there an official way to add methods to an instance?

Paul Rubin http
Fri Apr 4 11:23:36 CEST 2008


Brian Vanderburg II <BrianVanderburg2 at aim.com> writes:
> I've checked out some ways to get this to work.  I want to be able to
> add a new function to an instance of an object.  

Ugh.  Avoid that if you can.  But see:

  http://en.wikipedia.org/wiki/Monkey_patch



More information about the Python-list mailing list