calling dir() in python
<p>Question: What is being object is being queried when i call dir() in python interpreter? </p>

<hr>

<p>Info:
I'm playing around with a package that I want to be able to pull the names for functions from the global dictionary. I thought that it would be dir(__global) but that wasn't it. nor was dir(sys.modules). I really am not sure what it is. If i jump to command line and type <code>dir()</code> into a fresh interpreter session it give me <code>['__builtins__', '__doc__', '__name__', '__package__']</code> what would be the ob in dir(ob) that would give me this same return. </p>
