dummy.func1
is unbound, and therefore simply takes an explicit self
argument:
def greet(f,name):
d = dummy()
f(d, name)
greet(dummy.func1,'Bala')
dummy.func1
is unbound, and therefore simply takes an explicit self
argument:
def greet(f,name):
d = dummy()
f(d, name)
greet(dummy.func1,'Bala')