Python member function decorators use instance as a parameter
<p>How to use instance as a parameter in the python member function decorators.
The following is an example.</p>

<pre><code>def foo(func):
    def wrap(s):
        func()
        s.ma()
    return wrap

class A:
    def ma(self):
        print "this is ma"

    @foo(self)     #error.name 'self' is not defined
    def mb(self):
        print "this is mb"
</code></pre>
