Why some class variables seem to act as static while others don't?
<p>Dictionaries and lists defined directly under the class definition act as static (e.g. <a href="http://stackoverflow.com/questions/3045246/python-and-object-class-attrs-whats-going-on">this question</a>)<br>
How come other variables such as integer do not?</p>

<pre><code>&gt;&gt;&gt; class Foo():
        bar=1

&gt;&gt;&gt; a=Foo()
&gt;&gt;&gt; b=Foo()
&gt;&gt;&gt; a.bar=4
&gt;&gt;&gt; b.bar
1
&gt;&gt;&gt; class Foo():
        bar={}

&gt;&gt;&gt; a=Foo()
&gt;&gt;&gt; b=Foo()
&gt;&gt;&gt; a.bar[7]=8
&gt;&gt;&gt; b.bar
{7: 8}
</code></pre>
