title: How to distinguish two kinds of similar functions or methods in Python?
body: <p>In python, I have two kinds of functions or methods with different type of input arguments, for example</p>
  <pre><code>def fp(ps):
      print(ps, &quot;ps should be a cartesian points array&quot;)
  
  def fb(bs):
      print(bs, &quot;bs should be a barycentric points array&quot;)
  </code></pre>
  <p>I will pass one or more above functin objects to another function, for example:</p>
  <pre><code>def process(f0, f1):
      print(&quot;I want to call `f0` and `f1`!&quot;)
      print(&quot; `f0(ps)` or `f0(bs)`?&quot;)
      print(&quot; `f1(ps)` or `f1(bs)`?&quot;)
  </code></pre>
  <p>Whether there is a concise way to decide what parameters ( <code>ps</code> or <code>bs</code>) I should pass in to call <code>f0</code> and <code>f1</code>.</p>