If you subclass from dict, why is __dict__ always empty?
<p>I have a question regarding the subclassing behaviour in Python 2.7.</p>

<p>If I subclass from the built-in <code>dict</code> type, it seems that <code>__ dict __</code> is always empty.
Where does Python save the key/value pairs?</p>

<pre><code>&gt;&gt;&gt; class Foobar(dict):
...     pass
... 
&gt;&gt;&gt; foobar = Foobar()
&gt;&gt;&gt; foobar.__dict__
{}
&gt;&gt;&gt; foobar['test'] = 1
&gt;&gt;&gt; foobar.__dict__
{}
&gt;&gt;&gt; 
</code></pre>
