1👍
✅
You are trying to inherit a function
class bar(foo):
Where foo
is function.Did you mean
class foo(object) :
def __init__(self,par):
print "Inside foo constructor"
Source:stackexchange.com