obtaining named attributes of self
<p>according to my understanding of concatenation this code should work:</p>

<pre><code>aList = ["first", "second", "last"]
for i in aList:
    print self.i
</code></pre>

<p>My class defines the bindings <code>self.first=something</code> as well as <code>self.second</code> and <code>self.last</code>. When I write <code>print self.first</code> the code works but <code>print self.i</code> raises an exception. What am I doing wrong?</p>
