> (Or, help me understand, what is the difference between a type that I create > using python C api and a python class?) Grepping for the specific error message would have answered that question: Python (new-style) classes have the Py_TPFLAGS_HEAPTYPE set, types declared as static structs in C don't. Regards, Martin