Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102502

Re: Efficient Wrappers for Instance Methods

From "Sven R. Kunze" <srkunze@mail.de>
Newsgroups comp.lang.python
Subject Re: Efficient Wrappers for Instance Methods
Date 2016-02-04 17:18 +0100
Message-ID <mailman.68.1454602708.30993.python-list@python.org> (permalink)
References (3 earlier) <CAERt=-wf1+WA462erbYTM=74Sx+8-gOjcC5dY-d0Ma2B56AidQ@mail.gmail.com> <56B26D3D.6040703@mail.de> <n8tqt8$8m8$1@ger.gmane.org> <56B2747B.6050209@mail.de> <1454543258.197018.511336178.74125AA7@webmail.messagingengine.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Efficient Wrappers for Instance Methods "Sven R. Kunze" <srkunze@mail.de> - 2016-02-04 17:18 +0100

csiph-web