I am trying to access inner method in python from another method but on doing this it is giving me "AttributeError: 'function' object has no attribute 'b'"
My Scenario is:
class Foo:
def first_method(self):
something
def test(self):
print 'Hi'
def second_method(self):
a = self.test()
The line a = self.test()
is throwing an error.