Access parent namespace in python
<pre><code>def c():
    def a():
        print dir()

    def b():
        pass

    a()

c()
</code></pre>

<p>Probably a really simple question, but I can't seem to find an answer by googling. I have the code above, and I want the a method to print the namespace containing the methods a and b, i.e. I want it to print the namespace of the point form which it is called. Is this possible? Preferably in Python 2.x</p>
