C-API PyObject_Call

moerchendiser2k3 googler.1.webmaster at spamgourmet.com
Tue Mar 16 14:25:25 EDT 2010


Hi, currently I am not at home, I will post some stuff when I am back.
Just the note: I throw an exception with the C API.

Looks like that


PyObject *result = PyObject_Call(my_isntance, "", NULL);
if(result==NULL)
{
    PyErr_Print(); //when this happens, the traceback is correct with
information about the file/line
    return;
}

if(!PyXYZ_Check(result))
{
    PyErr_SetString(PyExc_TypeError, "Wrong type, ....");
    PyErr_Print(); //missing information of the file/line.
    return;
}

Well, I expect, that there are no information about the line/file, so
I know something is missing, but what is missing?

Bye, moerchendiser2k3



More information about the Python-list mailing list