title: How to pass member function as argument in python?
body: <p>I want to pass something similar to a member function pointer. I tried the following.</p>
  
  <pre><code>class dummy:
      def func1(self,name):
          print 'hello %s' % name
      def func2(self,name):
          print 'hi %s' % name
  
  def greet(f,name):
      d = getSomeDummy()
      d.f(name)
  
  greet(dummy.func1,'Bala')
  </code></pre>
  
  <p>Expected output is <code>hello Bala</code> </p>