E
Ecir Hana
Hello,
if creating new CFunction
PyObject *function = PyCFunction_New(function_name, NULL);
and then this is the only thing which uses it ("dictionary" stays
alive...)
PyDict_SetItemString(dictionary, "function", function);
do I have to
Py_DECREF(function)
or not?
if creating new CFunction
PyObject *function = PyCFunction_New(function_name, NULL);
and then this is the only thing which uses it ("dictionary" stays
alive...)
PyDict_SetItemString(dictionary, "function", function);
do I have to
Py_DECREF(function)
or not?