title: Python - Overwriting __getattribute__ for an instance?
body: <p>This one seems a bit tricky to me. Sometime ago I already managed to overwrite an instance's method with something like:</p>
  
  <pre><code>def my_method(self, attr):
      pass
  
  instancemethod = type(self.method_to_overwrite)
  self.method_to_overwrite = instancemethod(my_method, self, self.__class__)
  </code></pre>
  
  <p>which worked very well for me; but now I'm trying to overwrite an instance's <code>__getattribute__()</code> function, which doesn't work for me for the reason the method seems to be</p>
  
  <pre><code>&lt;type 'method-wrapper'&gt;
  </code></pre>
  
  <p>Is it possible to do anything about that? I couldn't find any decent Python documentation on <code>method-wrapper</code>.</p>