dir() a __class__ attribute?
<pre><code>class Foo:
  pass

&gt;&gt;&gt; f = test.Foo()
</code></pre>

<p>Lets look into the class instance ...</p>

<pre><code>&gt;&gt;&gt; dir(f)
['__add__', [__class__] ...]
</code></pre>

<p>Oooh! Lets look into the class instance metadata ...</p>

<pre><code>&gt;&gt;&gt; dir(f.__class__)
['__add__', [__class__] ...]
</code></pre>

<p>hmm ... was expecting attributes of <code>__class__</code> ; but returns back attributes of <code>f</code></p>

<p>Trying a hit and trial ...</p>

<pre><code>&gt;&gt;&gt; dir(f.__class__.__class__)
['__abstractmethods__', '__base__' ...]
</code></pre>

<p>hmm ... why twice a charm?</p>
