title: Python: check if method is static
body: <p>assume following class definition:</p>
  
  <pre><code>class A:
    def f(self):
      return 'this is f'
  
    @staticmethod
    def g():
      return 'this is g'
  
  a = A() 
  </code></pre>
  
  <p>So f is a normal method and g is a static method.</p>
  
  <p>Now, how can I check if the funcion objects a.f and a.g are static or not? Is there a "isstatic" funcion in Python?</p>
  
  <p>I have to know this because I have lists containing many different function (method) objects, and to call them I have to know if they are expecting "self" as a parameter or not.</p>