On Fri, Jan 14, 2005 at 04:01:13PM +0100, Francesco Montorsi wrote:
> PyObject *list = PyObject_Dir(m_pGlobals);
> if (!list || PyList_Check(list) == FALSE)
> return;
>
> for (int i=0,max=PyList_Size(list); i
> PyObject *elem = PyList_GetItem(list, i);
> if (PyCallable_Check(elem) !=
Hi all,
I'm a Python newbie and I'm trying to add to my C++ program a limited
support for scripts written in python.
In particular, I'd like to load user scripts written in python, list all the
functions
he defined in the script file and then call them.
To begin I wrote into my C++ program (co