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?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to