You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C variables corresponding to optional arguments should be initialized to
530
530
their default value --- when an optional argument is not specified,
531
531
<aclass="reference internal" href="#c.PyArg_ParseTuple" title="PyArg_ParseTuple"><codeclass="xref c c-func docutils literal notranslate"><spanclass="pre">PyArg_ParseTuple()</span></code></a> does not touch the contents of the corresponding C
532
-
variable(s).</p>
532
+
variable(s).
533
+
For example, the format string <codeclass="docutils literal notranslate"><spanclass="pre">"OO|OO"</span></code> corresponds to the Python
Indicates that the remaining arguments in the Python argument list are
536
-
keyword-only. Currently, all keyword-only arguments must also be optional
537
-
arguments, so <codeclass="docutils literal notranslate"><spanclass="pre">|</span></code> must always be specified before <codeclass="docutils literal notranslate"><spanclass="pre">$</span></code> in the format
538
-
string.</p>
538
+
keyword-only.
539
+
They are optional if <codeclass="docutils literal notranslate"><spanclass="pre">|</span></code> was specified before <codeclass="docutils literal notranslate"><spanclass="pre">$</span></code>, and required otherwise.
540
+
<codeclass="docutils literal notranslate"><spanclass="pre">|</span></code> cannot be specified after <codeclass="docutils literal notranslate"><spanclass="pre">$</span></code>.
541
+
For example, the format string <codeclass="docutils literal notranslate"><spanclass="pre">"O|O$O"</span></code> corresponds to the Python
and the format string <codeclass="docutils literal notranslate"><spanclass="pre">"OO$OO"</span></code> corresponds to <codeclass="docutils literal notranslate"><spanclass="pre">f(a,</span><spanclass="pre">b,</span><spanclass="pre">*,</span><spanclass="pre">c,</span><spanclass="pre">d)</span></code>.</p>
0 commit comments