How to fill  specific positional arguments with partial in python?
<p>Basically, what I'd like to do is:</p>

<pre><code>&gt;&gt;&gt; from functools import partial
&gt;&gt;&gt; partial(str.startswith, prefix='a')('a')
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: startswith() takes no keyword arguments
</code></pre>

<p>But more generally the question is, <strong>how to fill specific positional arguments with <code>partial</code></strong>.</p>

<p>P.S. I do realize that I can use a <code>lambda</code> instead.</p>
