Efficient Wrappers for Instance Methods

Random832 random832 at fastmail.com
Wed Feb 3 18:47:38 EST 2016

On Wed, Feb 3, 2016, at 16:43, Sven R. Kunze wrote:
> Actually a nice idea if there were no overhead of creating methods for 
> all heap instances separately. I'll keep that in mind. :)

What about changing the class of the object to one which is inherited
from its original class and has the method you want? What about reaching
into the class and changing the method in the first place? Either may
not be appropriate, of course, depending on your use case.

More information about the Python-list mailing list