title: How to use a non-keyword arg after a keyword arg in a method call?
body: <p>So I have a function defined as such:</p>
  
  <pre><code>def getDistnace(self, strings, parentD, nodeName, nodeDistance):
  </code></pre>
  
  <p>And I am calling it with:</p>
  
  <pre><code>Node.getDistnace(newNode, strings, parentD, nodeName=None, nodeDistance=None)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Node.getDistnace(node, strings=None, parentD=None, nodeName, nodeDistance)
  </code></pre>
  
  <p>Which are both from 2 other different functions.  But my problem is that I get an error stating there is a <code>non-keyword arg after keyword arg</code>.</p>
  
  <p>Is there any way around this error? The first <code>Node.getDistnace</code> adds <code>strings</code> and <code>parentD</code> to <code>getDistance</code>, and the second <code>Node.getDistnace</code> adds <code>nodeName</code> and <code>nodeDistance</code> to the function.</p>