I've embedded Python in my C++ application, and I've created several C functions which can be called from Python.
To get the arguments, I'm currently doing:
if (!PyArg_ParseTuple(args, "zk", ¶m1, ¶m2))
return NULL;
However, I want param2 to be optional. How can I check for the two of them separately?