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.

Overriding base class methods in the C API

2009-01-18 Thread Floris Bruynooghe
Hello 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. Anyone know of a trick I am missing? Cheers Floris -- http://m