Overriding base class methods in the C API

Floris Bruynooghe floris.bruynooghe at gmail.com
Sun Jan 18 19:18:59 EST 2009


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



More information about the Python-list mailing list