Accessing inner method in python from another method
<p>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'"</p>

<p>My Scenario is:</p>

<pre><code>class Foo:
    def first_method(self):
        something
        def test(self):
           print 'Hi'

    def second_method(self):
       a = self.test()
</code></pre>

<p>The line <code>a = self.test()</code> is throwing an error.</p>
