Re: Overriding base class methods in the C API

2009-01-19 Thread Gabriel Genellina
En Sun, 18 Jan 2009 22:18:59 -0200, Floris Bruynooghe escribió: I've been trying to figure out how to override methods of a class in the C API. For Python code you can just redefine the method in your subclass, but setting tp_methods on the type object does not seem to have any influcence.

Re: overriding base class

2007-06-29 Thread Michele Simionato
On Jun 30, 5:23 am, Carl Banks <[EMAIL PROTECTED]> wrote: > Now that I've suggested that, I highly recommend you be sure you're > very acquainted with new-style objects and method resolution order > before attempting this. You need extra care when using MI, even > though this use of it is rather

Re: overriding base class

2007-06-29 Thread Carl Banks
On Jun 29, 7:36 pm, alf <[EMAIL PROTECTED]> wrote: > Hi, > > I want to develop a following lib: > > lib space user space > > A -> B -> | -> user_class > > however A and B are abstrac enough to have following: > > user_super_base_class -> | -> A -> B -> | -> user_class > > user space