Are there other Type in addition to the class to be called by hasattr
<p>For code:</p>

<pre><code>class a(object):
    a='aaa'
b=a()
print hasattr(a,'a')
print hasattr(b,'a')
</code></pre>

<p>who can be called by hasattr except 'class somebody'?</p>

<p>Thanks!</p>
