title: unbound method f() must be called with fibo_ instance as first argument (got classobj instance instead)
body: <p>In Python, I'm trying to run a method in a class and I get an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\domenico\Desktop\py\main.py", line 8, in &lt;module&gt;
      fibo.f()
    TypeError: unbound method f() must be called with fibo instance 
    as first argument (got nothing instead)
  </code></pre>
  
  <p>Code: (swineflu.py)</p>
  
  <pre><code>class fibo:
      a=0
      b=0
  
      def f(self,a=0):
          print fibo.b+a
          b=a;
          return self(a+1)
  </code></pre>
  
  <p>Script main.py</p>
  
  <pre><code>import swineflu
  
  f = swineflu
  fibo = f.fibo
  
  fibo.f()            #TypeError is thrown here
  </code></pre>
  
  <p>What does this error mean? What is causing this error? </p>