title: A way to automatically pass parameters to a function?
body: <p>I have a bunch of callback functions in a module. They all call <code>some_func()</code> with the first, say, couple of arguments always the same and derived from their own arguments, while other arguments vary. Like so:</p>
  
  <pre class="lang-py prettyprint-override"><code>from outer.space import some_func
  def callback_A(param1, param2, param3):
      ...
      some_func(param2+param1, param3, ..., ...)
      ...
  
  def callback_B(param1, param2, param3, param4):
      ...
      some_func(param2+param1, param3, ..., ...)
      ...
  </code></pre>
  
  <p>And it's all over the code. And uglier than just param2+param1.</p>
  
  <p>In C/C++, I'd just do a macro </p>
  
  <pre><code>#define    S_F(a,b)    some_func(param2+param1, param3, a, b)
  </code></pre>
  
  <p>and start using S_F inside callbacks instead of <code>some_func</code>. What can I do in Python? </p>