On 5/3/11 9:28 PM, Stefan Kuzminski wrote:
closer I think
1) I changed tp_name to be 'observation.MV' ( module is named observation.c )
and now I get a new error..
PicklingError: Can't pickle <type 'observation.MV'>: import of module
observation failed
2) here is the init function, sorry I did not include it in the original listing
void initobservation(void) {
PyObject *m;
m = Py_InitModule("observation", observation_methods);
Py_INCREF(&PyMV_Type);
PyModule_AddObject(m, "MV", (PyObject *)&PyMV_Type);
}
Without seeing the whole C code, or the Python code you are trying, I can't help
much more.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list