Embedding: Problem with CallObject

Alex Martelli aleaxit at yahoo.com
Thu Jun 14 07:23:55 EDT 2001


"James Turner" <jamwt at jamwt.com> wrote in message
news:20010613.174914.1793282088.6934 at bender.nowhere.non...
    ...
>     func = PyDict_GetItemString(flist,PyString_FromString("out"));

    PyObject* PyDict_GetItemString(PyObject *p, char *key)

Note the second argument's type... you're passing a PyObject*
where a char* is required.

Probably running your C compiler with suitable flags will
tell you about such errors.  -Wall -WError -pedantic is
the needed incantation on gcc, for example, if I recall
correctly (it HAS been a while since I last used it:-).


Alex






More information about the Python-list mailing list