title: python: how to access attributes of functions
body: <p>I'm trying to access attributes of member functions, but I cannot understand why I can access only through the <code>__dict__</code>.</p>
  
  <pre><code>class A(object):
      def fA(self):
          print A.fA.x 
      fA.x = 2
  
  A.fA.__dict__['x'] = 3 
  #A.fa.x #AttributeError: 'instancemethod' object has no attribute 'x'
  A.fA.x = 4 
  </code></pre>
  
  <p>Why I do get an AttributeError if I try to access 'directly'? </p>