title: Decorators on bound methods with access to class and his ancestors
body: <p>When I decorated the bound method in Python class, I need get some info in this decorator from outer class. Is that possible?</p>
  
  <p>For example:</p>
  
  <pre><code>def modifier(func):
      import sys
      cls_namespace = sys._getframe(1).f_locals
      cls_namespace['data']  # dictonary has no key 'data'
      ...
      return func
  
  class Parent:
      data = "Hi!"
  
  class Child(Parent):
  
      @modifier
      def method(self):
          pass
  </code></pre>
  
  <p>the <code>cls_namespace</code> is just incomplete namespace of current class without <code>data</code> field that I need to get.</p>
  
  <p>Is there ways to get it in decorator?</p>