Assume we have the type Noddy
as defined in the tutorial on writing C extension modules for Python. Now we want to create a derived type, overwriting only the
One way to try and understand how to do this is to create a version of it using SWIG. See what it produces and see if it matches or is done a different way. From what I can tell the people who have been writing SWIG have an in depth understanding of extending Python. Can't hurt to see how they do things at any rate. It may help you understand this problem.