doc.mefi...@gmail.com writes: > I'm trying to debug and find my error. It goes wrong when: > PyObject *v; > v = va_arg(*p_va, PyObject *); > if (v != NULL) { > if (*(*p_format - 1) != 'N') > Py_INCREF(v); > } > > it tries to PyINCREF to my passed callback.
This indicates that it expects the "callback" to be a Python object. Check the C-API specification. It should tell you which parameters are expected to be Python objects and which C objects. -- https://mail.python.org/mailman/listinfo/python-list