[capi-sig] create a new subclass data type in C

Shaun Savage shaun.savage at hp.com
Wed Jul 22 19:26:56 CEST 2009


Hi

I can create a new object in C.  Now I am trying to create a class and
sub classes in C.  I plan to use PyType_GenericNew() to create the base
class.  
PyTypeObject myClass_Type = {
...
};

myClassObj = PyTYpe_GenericNew(myClass, ...);

How do I create something like  

class myNewClass(myClass):

in C? 



More information about the capi-sig mailing list