python get only class attribute no superclasses
<p>So is it possible to get a dictionary/list of the attributes ONLY for the most specific class ? So far I'm using</p>

<pre><code>   for attr, value in obj.__class__.__dict__.iteritems():
</code></pre>

<p>But this will also give me the attibutes defined in superclasses. Is there any way to avoid this?</p>
