problems about the attributes of a python class method
<pre><code>class test :

    def fn(self, i):
        #test.fn.f = 0     the "compiler" show "not define" errors
        #self.fn.f = 0     the "compiler" show "not define" errors

        return test.fn.f   #ok
        return self.fn.f   #ok

    fn.f = 1

p = test()

print p.fn(1)
</code></pre>

<p>I am just curious about why i can't change the values of a attribute in "fn" method</p>

<p>In essence, it's...</p>

<p>what differences are between <code>test.fn.f</code> and <code>self.fn.f</code> ? i am sure it's ok modifing function's attribute-value , but why i can do that in a method? </p>
