Efficient Wrappers for Instance Methods

Sven R. Kunze srkunze at mail.de
Thu Feb 4 11:18:21 EST 2016


On 04.02.2016 00:47, Random832 wrote:
> 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.

There is no base class.

Best,
Sven



More information about the Python-list mailing list