title: Python passing self to the decorator
body: <p>I'm trying to pass the <code>self</code> object to my decorator to access its contents but get the following error:</p>
  
  <pre><code>def log_decorator():
      def log_real_decorator(f):
          @wraps(f)
          def wrapper(self,*args, **kw):      
              print "I am the decorator, I know that self is", self, "and I can do whatever I want with it!"
              print "I also got other args:", args, kw           
              f(*args, **kw)
  
          return wrapper        
      return log_real_decorator    
  
  class Foo(object):
      @log_decorator
  
      def meth(self):
          print "I am the method, my self is", self
  
  
  f = Foo()        
  f.meth()
  </code></pre>
  
  <p>Error:- </p>
  
  <pre><code>TypeError: log_decorator() takes no arguments (1 given)
  </code></pre>