Problem with PyEval_CallObject .

Arivazhagan arivu at qmaxtest.com
Fri Jun 6 05:01:25 EDT 2003


Hi All,

In our Python Extension module we used PyEval_CallObject while calling
a python function from C.We used Py_DECREF to decrement the result but
still the memory was not released even after we have finalized the
python instance.

But when we replaced PyEval_CallObject with PyObject_CallMethod the
momory was released properly and our problem got solved.

Could any one explain what is wrong with PyEval_CallObject?

Thanks in Advance.

Regards
B.Arivazhagan




More information about the Python-list mailing list