variable scope of __init__
<p>I just wonder, why variable defined by <code>__init__</code> is not accessible from class? Should its executed during instantiation, so that its accessible from outside?</p>

<pre><code>&gt;&gt;&gt; class a:
...     data = {}
... 
&gt;&gt;&gt; a.data
{}
&gt;&gt;&gt; class a:
...     def __init__(self):
...             self.data = {}
... 
&gt;&gt;&gt; a.data
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: class a has no attribute 'data'
</code></pre>
