Default parameters from Python in a C++ defined function?
<p>I've embedded Python in my C++ application, and I've created several C functions which can be called from Python.</p>

<p>To get the arguments, I'm currently doing:</p>

<pre><code>if (!PyArg_ParseTuple(args, "zk", &amp;param1, &amp;param2))
  return NULL;
</code></pre>

<p>However, I want <code>param2</code> to be optional. How can I check for the two of them separately?</p>
