Ok, I have it :)
PyImport_Import , PyModule_GetDict, PyDict_GetItemString and
PyObject_CallObject
Need to take a second look at cython when I have a spare cycle or 2.
Thanks for the the tip :)
A+
Dids,
--
http://mail.python.org/mailman/listinfo/python-list
Dids, 14.03.2012 14:46:
> Apologies if this was asked before, I couldn't find anything.
>
> I have a class defined in a python file:
> for example:
>
> class demo:
> [ class definition goes here]
>
> I'm writing a C extension.
> In the first function, I take an instance of the "demo" class