> I was thinking of using pointer indirection for this: > > foo(PyObject *self, int *i) > > If i is given as argument, *i is set to the value, otherwise > i is set to NULL. That is a good idea; I'll try to update my patch to more calling conventions. Regards, Martin