Code: Select all
class A:
def b(self):
print 'hey'
a = A()
f = a.b
Code: Select all
c = A()
ff = some_python_kungfu(f, c)
ff() # It is calling c.b()
Code: Select all
class A:
def b(self):
print 'hey'
a = A()
f = a.b
Code: Select all
c = A()
ff = some_python_kungfu(f, c)
ff() # It is calling c.b()