why python associative map member variable is shared between objects
<p>For class A, why is aMap member variable being shared between object and object b?</p>

<pre><code>&gt;&gt;&gt; class A:
...     aMap = {}

&gt;&gt;&gt; a = A()
&gt;&gt;&gt; a.aMap["hello"] = 1

&gt;&gt;&gt; b = A()
&gt;&gt;&gt; b.aMap["world"] = 2

&gt;&gt;&gt; c = []
&gt;&gt;&gt; c.append(a)
&gt;&gt;&gt; c.append(b)

&gt;&gt;&gt; for i in c:
...     for j in i.aMap.items():
...         print j
('world', 2)  
('hello', 1)  
('world', 2)  
('hello', 1)  
</code></pre>
