Problem with PyEval_CallObject .

Arivazhagan arivu at
Fri Jun 6 11:01:25 CEST 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.


More information about the Python-list mailing list